Skip to content

Commit 4b47a71

Browse files
authored
Merge pull request #1 from moh-slimani/bugfix/issue-15-route-login
fix: Clear session password hash on logout to prevent route error (#15)
2 parents 9c214f9 + 4b1f55d commit 4b47a71

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)