summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/actions.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php
index a268811dd..d3eff18b7 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -307,8 +307,10 @@ function act_auth($act){
global $INFO;
//already logged in?
- if($_SERVER['REMOTE_USER'] && $act=='login')
- return 'show';
+ if($_SERVER['REMOTE_USER'] && $act=='login'){
+ header("Location: ".wl($ID,'',true));
+ exit;
+ }
//handle logout
if($act=='logout'){