Skip to content

Commit

Permalink
Check for password before storing hash in session (#50507)
Browse files Browse the repository at this point in the history
Fixes #50497
  • Loading branch information
valorin authored Mar 13, 2024
1 parent 3cc3d2a commit bf8fe84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Middleware/AuthenticateSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(AuthFactory $auth)
*/
public function handle($request, Closure $next)
{
if (! $request->hasSession() || ! $request->user()) {
if (! $request->hasSession() || ! $request->user() || ! $request->user()->getAuthPassword()) {
return $next($request);
}

Expand Down

0 comments on commit bf8fe84

Please sign in to comment.