Autologin after Registration

So one of clients wanted for the user to be automatically logged in after the user registered with the site. I thought it was going to be a little difficult, doing a form with hidden fields that submitted to the login page. But after a little searching, it turns out that its a 2 lines of editing to the registration component. Add “$mainframe” as one of the globals in line 118 and add

 $mainframe->login($row->username,$row->password); 

to line 213. Happy Coding

Ciao Ciao

Nonprofit news, strategy, and tactics sent straight to your inbox
Sign up for the Soapbox Engage newsletter




This entry was posted on Thursday, August 24th, 2006 at 1:06 pm and is filed under Joomla, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “Autologin after Registration”

  1. Martin says:

    Hi, thanks for the tip… I naver did this thing although many clients want it…

  2. Piombo says:

    hi, do you have solution for Joomla 1.5.? ?

Leave a Reply

You must be logged in to post a comment.