If checkExistingAuth() fails, log the user out.
authorJan <jan@horde.org>
Tue, 8 Jun 2010 17:52:08 +0000 (18:52 +0100)
committerJan Schneider <jan@horde.org>
Tue, 8 Jun 2010 17:58:56 +0000 (19:58 +0200)
framework/Core/lib/Horde/Registry.php

index e279885..d24f138 100644 (file)
@@ -1694,7 +1694,11 @@ class Horde_Registry
 
             if (($_SESSION['horde_auth']['driver'] == $driver) ||
                 isset($_SESSION['horde_auth']['app'][$driver])) {
-                return Horde_Auth::checkExistingAuth();
+                if (Horde_Auth::checkExistingAuth()) {
+                    return true;
+                }
+                $this->clearAuth();
+                return false;
             }
         }