[wp-trac] [WordPress Trac] #7344: Retrieve Password Error Action
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 18 15:28:50 GMT 2008
#7344: Retrieve Password Error Action
-------------------------+--------------------------------------------------
Reporter: axelseaa | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6.1
Component: General | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
I am the wpmu ldap plugin author - and I am working on a way to better
handle the lost password function. The ldap plugin now supports local and
ldap users, so the trick is how to handle the both of them. See the
attached patch for my proposed changes. This would then allow me to run
the following function:
function ldapRetrievePassword($userID,$pass_error) {
$ldap_login = get_usermeta($userID, 'ldap_login');
if ($ldap_login == true) {
// get the configurable error message:
$pass_error = get_site_option('ldapGetPasswordMessage');
}
}
add_action('retrieve_password_error', 'ldapRetrievePassword',10,2);
--
Ticket URL: <http://trac.wordpress.org/ticket/7344>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list