Skip to content

Commit 836707a

Browse files
authored
Merge pull request #17 from slimani-dev/bugfix/issue-15-route-login
Fix: Clear session password hash to resolve "Switch To" Button Error (Issue #15)
2 parents 1dd3b0e + 5b69562 commit 836707a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FilamentDevelopersLogin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public function login(Panel $panel, FilamentDeveloperLoginsPlugin $plugin, strin
1919

2020
if ($panel->auth()->check()) {
2121
$panel->auth()->logout();
22+
23+
session()->forget('password_hash_'.$panel->getAuthGuard());
2224
}
2325

2426
/** @var ?\Illuminate\Contracts\Auth\Authenticatable $model */

0 commit comments

Comments
 (0)