Subversion Repositories oidplus

Rev

Rev 1266 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1266 Rev 1267
Line 73... Line 73...
73
                                if (!OIDplus::authUtils()->isAdminLoggedIn()) {
73
                                if (!OIDplus::authUtils()->isAdminLoggedIn()) {
74
                                        if (!$ra->checkPassword($old_password)) {
74
                                        if (!$ra->checkPassword($old_password)) {
75
                                                throw new OIDplusException(_L('Old password incorrect'));
75
                                                throw new OIDplusException(_L('Old password incorrect'));
76
                                        }
76
                                        }
77
                                }
77
                                }
78
                                OIDplus::logger()->log("[?WARN/!OK]RA(%1)?/[?INFO/!OK]A?", "Password of RA '%1' changed", $email);
78
                                OIDplus::logger()->log("V2:[OK/WARN]RA(%1)+[OK/INFO]A", "Password of RA '%1' changed", $email);
79
                        } else {
79
                        } else {
80
                                OIDplus::logger()->log("[?WARN/!OK]RA(%1)?/[?INFO/!OK]A?", "Password of RA '%1' created", $email);
80
                                OIDplus::logger()->log("V2:[OK/WARN]RA(%1)+[OK/INFO]A", "Password of RA '%1' created", $email);
81
                        }
81
                        }
82
                        $ra->change_password($password1);
82
                        $ra->change_password($password1);
83
 
83
 
84
                        return array("status" => 0);
84
                        return array("status" => 0);
85
                } else {
85
                } else {