Skip to content

Weird authentication behaviour #11679

Answered by goyne
goyne asked this question in Help
Mar 4, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Fixed.
Because of the FilamentUser contract on the User model, I had to implement the method canAccessPanel. I had copied that from the documentation:
public function canAccessPanel (Panel $panel) : bool { return $this->hasVerifiedEmail(); }

That method throws a 403 instead of redirecting to the verify prompt.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@goyne
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by goyne
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants