]> git.sur5r.net Git - contagged/commitdiff
fixed logout
authorAndreas Gohr <gohr@cosmocode.de>
Tue, 20 Oct 2009 08:56:38 +0000 (10:56 +0200)
committerAndreas Gohr <gohr@cosmocode.de>
Tue, 20 Oct 2009 08:56:38 +0000 (10:56 +0200)
login.php

index 5ea09ea7379485c66b4aa5a8d0f57f7011689bef..2aa4d16e0ca693d767929bc02409947d22c3f86d 100644 (file)
--- a/login.php
+++ b/login.php
@@ -30,6 +30,9 @@ if(!empty($_REQUEST['username'])){
     }else{
         $msg = $lang['msg_loginfail'];;
     }
+}else{
+    //logout
+    unset($_SESSION['ldapab']);
 }
 
 //prepare templates