From 0db145dafa032a8c1fd68c318afc59f9599f3756 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 11 Aug 2011 04:28:06 -0700 Subject: redirect to home after logging in using login url --- mod/login.php | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3