redirect to home after logging in using login url

This commit is contained in:
Friendika 2011-08-11 04:28:06 -07:00
parent 04b59ac49a
commit 0db145dafa
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
function login_content(&$a) {
if(x($_SESSION,'theme'))
unset($_SESSION['theme']);
if(local_user())
goaway(z_root());
return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
}