vincent15000's avatar

Fortify email verification : blocked on the email/verify page

Hello,

I'm using Fortify to authenticate a user and email vertification when a user registers.

I think that the user should be able to go back to the public home page for example.

But as I have added the guest middleware to the public routes, once the user is registered, before he clicks on the link received in the email, it's impossible to load any other page than the email/verify one.

So the idea is to reverse the middlewares from ['auth', 'verified'] to ['verified', 'auth'] so that the user can't be authenticated if his email hasn't been verified.

Is it a problem to do that ?

I could also remove the guest middleware from the public routes, but in this case it means that the user could be authenticated and able to go back to the home page or the login page, what has no sense. Furthermore it means that the use will remain connected but without being able to visit any other page than the email/verify one (and even not able to logout, unless I add a button on this page).

Thanks for your answer.

V

0 likes
0 replies

Please or to participate in this conversation.