diff --git a/wp-login.php b/wp-login.php index f1df02d374..7d8efe8f00 100644 --- a/wp-login.php +++ b/wp-login.php @@ -437,7 +437,7 @@ case 'rp' : if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] ) { $errors = new WP_Error('password_reset_mismatch', __('The passwords do not match.')); } elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ) { - reset_password($user, $_POST['pass']); + reset_password($user, $_POST['pass1']); login_header(__('Password Reset'), '

' . __('Your password has been reset.') . ' ' . __('Log in') . '

'); login_footer(); exit;