Auto login after signup
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: January 24, 2013 (RSS)
By ht1080z - January 24, 2013
Hi,
Is it possible with membership plugin to login user automatically with the created and sent credentials after the user signed up?
From the user in the sign-up only the username (e-mail) and captcha will asked.
Karls
By gregThomas - January 24, 2013 - edited: January 24, 2013
Hi Karls,
It is possible to log a user in after they sign up. After you have registered the users details you can redirect their browser login to them in. I've modified the default sign up form that comes with the membership plugin to do this and attached it to this post. The new line I've added is:
//If the user has successfully signed up, login them in.
redirectBrowserToURL('scratch.php?action=login&username='.$_REQUEST['username'].'&password='.$password);
Let me know if you have any questions on implementing the sytem.
Thanks!
Greg
PHP Programmer - interactivetools.com