stephenjude / filament-two-factor-authentication

Add two factor authentication (2FA) to Filament panels.
MIT License
34 stars 7 forks source link

[Bug]: CanAccessPanel needs to be true to login... but not user object does not exist #10

Closed tonypartridge closed 2 weeks ago

tonypartridge commented 2 weeks ago

What happened?

When logging in, if canAccessPanel checks the user object we don't have an object yet so it's false.

How to reproduce the bug

dd(auth()->user()); in canAccessPanel and it is null.

Package Version

0.0.8

PHP Version

8.3.13

Laravel Version

11.30.0

Which operating systems does with happen with?

No response

Notes

No response

tonypartridge commented 2 weeks ago

Nevermind, I was being so stupid, moment I posted this I realised I should be using $this duh.