From 996b22e4425eb798afa0dfe61ebadf54cf4ac456 Mon Sep 17 00:00:00 2001 From: memorz Date: Thu, 19 May 2022 01:03:48 +0800 Subject: [PATCH] Update ResetPasswordController.php Bug fix for reset password function. --- app/Http/Controllers/Auth/ResetPasswordController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 4fa8f08..3c2afd3 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -43,7 +43,7 @@ public function __construct() protected function resetPassword($user, $password) { $user->l_password = Hash::make($password); - $user->password = hash("sha224", $data['username'] . ':' . $password); + $user->password = hash("sha224", $user->username . ':' . $password); $user->setRememberToken(Str::random(60)); $user->save(); event(new PasswordReset($user));