Skip to content

Commit 4b1f55d

Browse files
committed
fix: Clear session password hash on logout to prevent route error (#15)
1 parent ffd5659 commit 4b1f55d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FilamentDevelopersLogin.php

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

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

2425
$model = (new ($plugin->getModelClass()))

0 commit comments

Comments
 (0)