Subversion Repositories oidplus

Rev

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

Rev 1143 Rev 1199
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($email)?/[?INFO/!OK]A?", "Password of RA '$email' changed");
78
                                OIDplus::logger()->log("[?WARN/!OK]RA(%1)?/[?INFO/!OK]A?", "Password of RA '%1' changed", $email);
79
                        } else {
79
                        } else {
80
                                OIDplus::logger()->log("[?WARN/!OK]RA($email)?/[?INFO/!OK]A?", "Password of RA '$email' created");
80
                                OIDplus::logger()->log("[?WARN/!OK]RA(%1)?/[?INFO/!OK]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 {