Auto-login and Redirect to returnURL after registration

15 years 3 days ago - 15 years 2 days ago #5070 by johnwwweissberg
With Ajax Register, after user fills in registration form, he is taken back to homepage which shows a small blue warning: "You may now login"

I am sending users to the "Registration" form with a "return URL" built-in to my call to the registration page by postpending: &return=[base64_encode(returnURL)]

Currently, after the user fills in the AJAX Registration form, he is not logged in and is not re-directed to the returnURL.

This post shows an easy way to make the standard joomla registration perform the auto-login and redirect:

www.gjcwebdesign.com/joomla-1.5-automati...er-registration.html

I have implemented this hack on com_ajaxregister/controller.php and it works correctly.

However, the return URL somehow gets lost before arrive at function register_save().

How can we capture the returnURL and then send it to function register_save() ?

Please Log in or Create an account to join the conversation.

13 years 11 months ago #5813 by furnivalt
I would also like to know how to do this.

Please Log in or Create an account to join the conversation.

13 years 11 months ago #5815 by Saka
AJAX Register has a setting called "Auto-login". If turned on, it will login you after you have registered. It will still redirect to the frontpage or the page you set up under "Redirect URL" but you will be logged-in.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch