email verification trigger

91 views
Skip to first unread message

Jason R

unread,
Oct 7, 2020, 8:44:43 PM10/7/20
to Joomla! General Development
Not sure of where the best place to post this. So I requested the other post be deleted on the forum.

I am trying to find the best way to do something. So hopefully I can get some direction.

1. User registers. (Temporary username is assigned)
2. User clicks confirmation email. (This step is completed).
3. After confirmation click change the username to an assigned username and display a page that shows the new username without login or auto login to display. All triggered by the email confirmation click.

Can a plugin do this? If so what event trigger do I use (onUserAuthorisation) and anyone know what variables are assigned from the email confirmation that allow me to know what user to modify.

Next, would be to Display the new username info and welcome the user and prompt for login or can we do auto login at this point.

Jason R

unread,
Oct 8, 2020, 3:10:37 PM10/8/20
to Joomla! General Development
Since I can't seem to find out where to trigger based on email verification click.  Is there a way to do this:

Email verification click -> redirect to URL to capture the parameters passed via the URL.  This is the what the email confirmation link contains:


If I had a way to get this on the redirect I could lookup the submission number and get the username and password to do what I need.  Or if I can activate the account myself I could send activate to my URL for the confirmation email.  I haven't been able to find any information on how to activate an account via PHP.

Thanks again

venomDev

unread,
Oct 9, 2020, 4:32:11 PM10/9/20
to Joomla! General Development
I use the email url method to verify a booking system in a similar way. I have a component installed that triggers on the url but you may be able to use the com_ajax component to trigger your plugin functions.
Reply all
Reply to author
Forward
0 new messages