Auto login after registration

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
If ability to define password on registration page is enabled, then once they register, it should automatically log them in.. since they did enter the credentials already..
 

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
enricodias4654 said:
Just call the attemptLogin in the auth class.
Sorry i'm not a php coder, i know some but not enough, i really should learn more but theres just not enough hours in the day =/. do you have an example code that i could use to slide into a file, that would then achieve the auto login ? and if so what file would i be putting it in

thanks for your time
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
In the 4.2 add $Auth->login($username, $newPassword); just after the line coreFunctions::redirect(WEB_ROOT . "/register_complete." . SITE_CONFIG_PAGE_EXTENSION); in the register.html in the flow theme.

This should work, but I didnt test it.
 

pilot830

New Member
YetiShare User
Jan 22, 2014
242
1
0
enricodias4654 said:
In the 4.2 add $Auth->login($username, $newPassword); just after the line coreFunctions::redirect(WEB_ROOT . "/register_complete." . SITE_CONFIG_PAGE_EXTENSION); in the register.html in the flow theme.

This should work, but I didnt test it.
tried it and then registered a new acct, i was not auto logged in, but thx anyway