Auto-login and Redirect to returnURL after registration
- johnwwweissberg
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
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() ?
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() ?
Last Edit: 15 years 2 days ago by johnwwweissberg.
Please Log in or Create an account to join the conversation.
- furnivalt
- Offline
- New Member
Less
More
- Thank you received: 0
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.
- Saka
- Offline
- Administrator
13 years 11 months ago #5815
by Saka
Emir Sakic
www.sakic.net
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.