Starbugstone / SnowTricks

OpenClassrooms - Php Symfony App dev - project 6
0 stars 0 forks source link

If user lost validation link, no way to resend #29

Closed Starbugstone closed 5 years ago

Starbugstone commented 5 years ago

Have a problem with the validation link. No real way to resend. I need to show a link when the user name and password is valid but the account has not been validated.

For the moment, the message is generated by a thrown error. Need to delve into the auth system.

Starbugstone commented 5 years ago

Probably need to rethink the whole validation process since the resend hash is a route with ID. Security wise, it would probably be best to do a form submit.

Starbugstone commented 5 years ago

This should probably be taken care with a custom exception and an eventSubscriber

Starbugstone commented 5 years ago

done here with a custom exception 2efefd84e9bdade33fc019583f9939fd1eb0201e