Skip to content

Commit

Permalink
fixed Rector Analysis failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyskills committed Jan 19, 2023
1 parent 98ade2d commit b081dee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Filters/ForcePasswordResetFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public function before(RequestInterface $request, $arguments = null)
/** @var Session $authenticator */
$authenticator = auth('session')->getAuthenticator();

if ($authenticator->loggedIn()) {
if (auth()->user()->requiresPasswordReset()) {
return redirect()->to(config('Auth')->forcePasswordResetRedirect());
}
if ($authenticator->loggedIn() && auth()->user()->requiresPasswordReset()) {
return redirect()->to(config('Auth')->forcePasswordResetRedirect());
}
}

Expand Down

0 comments on commit b081dee

Please sign in to comment.