diff --git a/wp-login.php b/wp-login.php index f1df02d37..7d8efe8f0 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'), '
'); login_footer(); exit;