Hello!
I've a problem with Joomla! Registration action, I'm using version 4 RC3.21.
If a guest want to register, than no problem.
But I created a form to be used only by registered users: they can create child-account (in a different joomla group).
When I create a child-account, the activation does not work with error COM_USERS_ACTIVATION_TOKEN_NOT_FOUND (you've to use a different browser or logout before because Joomla redirects you to the home page if you are already logged-in).
After investigation, I noticed in the database that the new-child-account has the field lastvisitDate filled with the last logout I made instead of '0000-00-00 00:00:00'.
So the validation is not performed because the function activation in components/com_users/models/registration.php searches the token in the request with lastvisitDate equals to $db->getNullDate().
There may be interference also with some other field, because in the new-child-account I see also sendEmail set to 1 if the father-account has 1, even if it should be 0, and params looks the same too...
Thanks for your help!
I've a problem with Joomla! Registration action, I'm using version 4 RC3.21.
If a guest want to register, than no problem.
But I created a form to be used only by registered users: they can create child-account (in a different joomla group).
When I create a child-account, the activation does not work with error COM_USERS_ACTIVATION_TOKEN_NOT_FOUND (you've to use a different browser or logout before because Joomla redirects you to the home page if you are already logged-in).
After investigation, I noticed in the database that the new-child-account has the field lastvisitDate filled with the last logout I made instead of '0000-00-00 00:00:00'.
So the validation is not performed because the function activation in components/com_users/models/registration.php searches the token in the request with lastvisitDate equals to $db->getNullDate().
There may be interference also with some other field, because in the new-child-account I see also sendEmail set to 1 if the father-account has 1, even if it should be 0, and params looks the same too...
Thanks for your help!