aboutsummaryrefslogtreecommitdiffstats
path: root/mod/login.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-11 04:28:06 -0700
committerFriendika <info@friendika.com>2011-08-11 04:28:06 -0700
commit0db145dafa032a8c1fd68c318afc59f9599f3756 (patch)
tree0a1d4f4c855c7dbbc01b65a8c705bff224708db1 /mod/login.php
parent04b59ac49ae20cadc20c06663451359b98de73f5 (diff)
downloadvolse-hubzilla-0db145dafa032a8c1fd68c318afc59f9599f3756.tar.gz
volse-hubzilla-0db145dafa032a8c1fd68c318afc59f9599f3756.tar.bz2
volse-hubzilla-0db145dafa032a8c1fd68c318afc59f9599f3756.zip
redirect to home after logging in using login url
Diffstat (limited to 'mod/login.php')
-rw-r--r--mod/login.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/login.php b/mod/login.php
index 58af42d74..10b4d3001 100644
--- a/mod/login.php
+++ b/mod/login.php
@@ -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);
} \ No newline at end of file