Skip to content

Commit

Permalink
Fix session issue
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Nov 5, 2021
1 parent a449e33 commit 9fbdf77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth-backend/AuthenticatesUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public function login(Request $request)
}

if ($this->attemptLogin($request)) {
$request->session()->put('auth.password_confirmed_at', time());
if ($request->hasSession()) {
$request->session()->put('auth.password_confirmed_at', time());
}

return $this->sendLoginResponse($request);
}
Expand Down

0 comments on commit 9fbdf77

Please sign in to comment.