]> git.mxchange.org Git - friendica.git/commitdiff
redirect to home after logging in using login url
authorFriendika <info@friendika.com>
Thu, 11 Aug 2011 11:28:06 +0000 (04:28 -0700)
committerFriendika <info@friendika.com>
Thu, 11 Aug 2011 11:28:06 +0000 (04:28 -0700)
mod/login.php

index 58af42d7445321f72e60c3164fbedb0671e1d7b6..10b4d3001d6a69562d987a528394ffbfc34e029e 100644 (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);
 
 }
\ No newline at end of file