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