Rev 1266 | Rev 1278 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1266 | Rev 1267 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | if (strlen($password1) < OIDplus::config()->getValue('ra_min_password_length')) { |
61 | if (strlen($password1) < OIDplus::config()->getValue('ra_min_password_length')) { |
62 | $minlen = OIDplus::config()->getValue('ra_min_password_length'); |
62 | $minlen = OIDplus::config()->getValue('ra_min_password_length'); |
63 | throw new OIDplusException(_L('Password is too short. Need at least %1 characters',$minlen)); |
63 | throw new OIDplusException(_L('Password is too short. Need at least %1 characters',$minlen)); |
64 | } |
64 | } |
65 | 65 | ||
66 | OIDplus::logger()->log("[INFO]RA(%1)!/A?", "RA '%1' was created by the admin, without email address verification or invitation", $email); |
66 | OIDplus::logger()->log("V2:[INFO]RA(%1)+[OK/INFO]A", "RA '%1' was created by the admin, without email address verification or invitation", $email); |
67 | 67 | ||
68 | $ra = new OIDplusRA($email); |
68 | $ra = new OIDplusRA($email); |
69 | $ra->register_ra($password1); |
69 | $ra->register_ra($password1); |
70 | 70 | ||
71 | return array("status" => 0); |
71 | return array("status" => 0); |