From: Jan Date: Tue, 8 Jun 2010 17:52:08 +0000 (+0100) Subject: If checkExistingAuth() fails, log the user out. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=164a9fcf9b1f135b880c12f0c82b025d2194152c;p=horde.git If checkExistingAuth() fails, log the user out. --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index e27988541..d24f138fe 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -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; } }