From 835def4fd311c79aec7d82e3b641cdc3a2caece4 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 29 Oct 2024 19:35:14 -0500 Subject: [PATCH] Fix bug preventing users from resetting their password. --- app/Actions/Fortify/ResetUserPassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Fortify/ResetUserPassword.php b/app/Actions/Fortify/ResetUserPassword.php index 939cf6e..8b0eb37 100644 --- a/app/Actions/Fortify/ResetUserPassword.php +++ b/app/Actions/Fortify/ResetUserPassword.php @@ -27,7 +27,7 @@ class ResetUserPassword implements ResetsUserPasswords 'password' => Hash::make($input['password']), ])->save(); AuditLogEntry::create([ - 'user' => auth()->user()->email, + 'user' => $user->email, 'ip_address' => request()->ip(), 'message' => 'Reset Password', 'affected' => ['users' => [$user->id]],