redefining user_login fixes the case insensitive issue with password retrieval
git-svn-id: http://svn.automattic.com/wordpress/trunk@1302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff60783025
commit
ac06c1e31e
|
@ -200,6 +200,8 @@ case 'retrievepassword':
|
|||
|
||||
$user_login = $_POST["user_login"];
|
||||
$user_data = get_userdatabylogin($user_login);
|
||||
// redefining user_login ensures we return the right case in the email
|
||||
$user_login = $user_data['user_login'];
|
||||
$user_email = $user_data->user_email;
|
||||
|
||||
if (!$user_email || $user_email != $_POST['email']) die(sprintf(__('Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or email address? <a href="%s">Try again</a>.'), 'wp-login.php?action=lostpassword'));
|
||||
|
|
Loading…
Reference in New Issue