diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-05 23:27:18 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-05 23:27:18 -0500 |
commit | d6ddb84132d7b9510ba82064c67f2a39822dab49 (patch) | |
tree | d68d132d685a3694340f249ff427e0bee022aba9 /plugins/Ldap/LdapPlugin.php | |
parent | 1bace8547b0fa3db316ad79e4948869a654b7140 (diff) |
Add ChangePassword event
Diffstat (limited to 'plugins/Ldap/LdapPlugin.php')
-rw-r--r-- | plugins/Ldap/LdapPlugin.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/Ldap/LdapPlugin.php b/plugins/Ldap/LdapPlugin.php index cabd3c828..755562f54 100644 --- a/plugins/Ldap/LdapPlugin.php +++ b/plugins/Ldap/LdapPlugin.php @@ -86,10 +86,20 @@ class LdapPlugin extends Plugin } } } - //error_log(print_r($registration_data,1)); + //set the database saved password to a random string. + $registration_data['password']=common_good_rand(16); $user = User::register($registration_data); //prevent other handlers from running, as we have registered the user return false; } } + + function onChangePassword($nickname,$oldpassword,$newpassword,&$errormsg) + { + //TODO implement this + $errormsg = _('Sorry, changing LDAP passwords is not supported at this time'); + + //return false, indicating that the event has been handled + return false; + } } |