Skip to content

Commit

Permalink
[6.x] Fix logout() when using AuthenticateSession and default guard
Browse files Browse the repository at this point in the history
Fix was attempted by #826, but the string concatenation is wrong and it never uses the default guard.
  • Loading branch information
murrant committed Oct 17, 2021
1 parent cdfe6aa commit 04b4f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function logout($guard = null)
{
Auth::guard($guard ?: config('auth.defaults.guard'))->logout();

Session::forget('password_hash_'.$guard ?: config('auth.defaults.guard'));
Session::forget('password_hash_'.($guard ?: config('auth.defaults.guard')));
}

/**
Expand Down

0 comments on commit 04b4f84

Please sign in to comment.