redirect to home after logging in using login url
This commit is contained in:
parent
04b59ac49a
commit
0db145dafa
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
||||||
function login_content(&$a) {
|
function login_content(&$a) {
|
||||||
if(x($_SESSION,'theme'))
|
if(x($_SESSION,'theme'))
|
||||||
unset($_SESSION['theme']);
|
unset($_SESSION['theme']);
|
||||||
|
if(local_user())
|
||||||
|
goaway(z_root());
|
||||||
return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
|
return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true);
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue