Hello guys,
I am starting to pull my hairs out. I am trying to set up a user registration form with additional information from a dropdown in the form. Based on the selection in the dropdown, somebody needs to receive an email to activate that user.
Next to the normal 'on submit' event, I added an 'on verify' event and an 'on activation' event.
The user registers (on submit), gets an email, validates his account (on verify).
Depending on the selection in dropbox, somebody receives an email who is in charge to activate the user (similar to the account activation by 'admin' in default Joomla settings)
After the user verifies his account, the email is sent to the person to activate it, but my activation link does not work.
I noticed that the token ($token = $form->data['_PLUGINS_']['joomla_registration']['activation'];) is saved in the _users table, but is changed after the user verifies (activates) his account. Also the _users.params is set to {"activate":1} and blok is set to 1.
All seems normal, the only thing I need is to find the way to activate the user like an 'admin' would do that.
By the way, very annoying: the administrator still receives email from default Joomla abotu a new user that needs to be validated. But that link is also not working.
I am not sure if it is possible to generate (read) the new token and use the same 'Jooma User activation' or that I need to build something different.
Hope somebody know how to solve this, I haven't found a lot of info on 'admin activation' after verification by the user.
[attachment=0]Merkmeesters Administratie Form Wizard UserRegistratie.png[/attachment]
I am starting to pull my hairs out. I am trying to set up a user registration form with additional information from a dropdown in the form. Based on the selection in the dropdown, somebody needs to receive an email to activate that user.
Next to the normal 'on submit' event, I added an 'on verify' event and an 'on activation' event.
The user registers (on submit), gets an email, validates his account (on verify).
Depending on the selection in dropbox, somebody receives an email who is in charge to activate the user (similar to the account activation by 'admin' in default Joomla settings)
After the user verifies his account, the email is sent to the person to activate it, but my activation link does not work.
I noticed that the token ($token = $form->data['_PLUGINS_']['joomla_registration']['activation'];) is saved in the _users table, but is changed after the user verifies (activates) his account. Also the _users.params is set to {"activate":1} and blok is set to 1.
All seems normal, the only thing I need is to find the way to activate the user like an 'admin' would do that.
By the way, very annoying: the administrator still receives email from default Joomla abotu a new user that needs to be validated. But that link is also not working.
I am not sure if it is possible to generate (read) the new token and use the same 'Jooma User activation' or that I need to build something different.
Hope somebody know how to solve this, I haven't found a lot of info on 'admin activation' after verification by the user.
[attachment=0]Merkmeesters Administratie Form Wizard UserRegistratie.png[/attachment]