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

One Response to “Autologin after Registration”

  1. Martin Says:

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

Leave a Reply

You must be logged in to post a comment.