We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9ffb69 + 997280a commit 4d2aa9bCopy full SHA for 4d2aa9b
1 file changed
app/Http/Controllers/PasswordResetController.php
@@ -32,6 +32,10 @@ public function reset(UpdatePasswordRequest $request, UserService $userService,
32
abort(404, 'There was an error resetting your password');
33
}
34
35
+ if ($user && ! $user->hasVerifiedEmail()) {
36
+ $user->markEmailAsVerified();
37
+ }
38
+
39
$authService->revokeAllTokens($user);
40
41
return redirect()->away( config('app.frontend_url') . "/login?state=password_reset_successfully" );
0 commit comments