From ac06c1e31efa6b25425b2379eafc4bd19e14e171 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Tue, 18 May 2004 01:29:29 +0000 Subject: [PATCH] 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 --- wp-login.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-login.php b/wp-login.php index d402cdc456..5daba22fdf 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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? Try again.'), 'wp-login.php?action=lostpassword'));