I've created a registration system like this:
- User fills in a form at
/register
- The form is posted to the same page (
/register
) - If the form is valid, the user will be added to the database with
isActive = 0
- A token will be generated to activate the user
- The user gets an e-mail with a link containing the token
- The user clicks the link and goes to
/activate/{token}
- If the token matches to the database, the user will be activated
isActive = 1
and redirected toreturn $this->redirect($this->generateUrl('login'));
with a flashmessageAccount activated, you can login now.
Everything is working fine, over 1500 users registered in the past 2 days. But some are experiencing trouble activating their account. After clicking the link they receive a 404-error. However, their accounts are activated as supposed.
I searched the logs and found around 1500 records, more or less around the time users are activating their account: No route found for "GET /favicon.ico"
/favicon.ico doesn't exist, the favicon is located somewhere else and included in shell.html.twig
, so every regular page has the favicon. But because the /activate/{token}
is just redirecting, no view is loaded.
It possible this has something to do with the error some users are encoutering?
Maybe the error has nothing to do with the favicon, all suggestion are more then welcome. I'm not able to reproduce the error, so it's very hard to debug at the moment.