mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-11 07:26:41 +02:00
Add early exit if user model is null
This commit is contained in:
parent
74a0db724d
commit
0706403ef4
@ -34,7 +34,7 @@ class LogoutListener extends AbstractAccessListener
|
||||
*/
|
||||
public function handle(mixed $event) : void
|
||||
{
|
||||
if (! $event instanceof Logout) {
|
||||
if (! $event instanceof Logout || $event->user == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user