Skip to content

Commit 8224bf3

Browse files
committed
[6.x] Fix logout() when using AuthenticateSession and default guard
Fix was attempted by laravel#826, but the string concatenation is wrong and it never uses the default guard.
1 parent cdfe6aa commit 8224bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function logout($guard = null)
5858
{
5959
Auth::guard($guard ?: config('auth.defaults.guard'))->logout();
6060

61-
Session::forget('password_hash_'.$guard ?: config('auth.defaults.guard'));
61+
Session::forget('password_hash_' . ($guard ?: config('auth.defaults.guard')));
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)