]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Modified actions/login.php to redirect logged in users who hit login/ to
authorSam Nicholls <msn@central.aber.ac.uk>
Fri, 8 Apr 2011 11:06:55 +0000 (12:06 +0100)
committerSam Nicholls <msn@central.aber.ac.uk>
Fri, 8 Apr 2011 11:06:55 +0000 (12:06 +0100)
the site index.

Removed the throwing of a clientError in favour of a common_redirect to
index to fix Issue 2990: "If logged in, just redirect to home page on
/login"

actions/login.php

index 7ec9c321391d1ea04994266834948f0871a36ac1..dcf9b53936229b52f9e8fb482c8d7c406afc5cd8 100644 (file)
@@ -94,8 +94,7 @@ class LoginAction extends Action
         parent::handle($args);
 
         if (common_is_real_login()) {
-            // TRANS: Client error displayed when trying to log in while already logged in.
-            $this->clientError(_('Already logged in.'));
+            common_redirect(common_local_url('index'));
         } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
             $this->checkLogin();
         } else {