From 164a9fcf9b1f135b880c12f0c82b025d2194152c Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 8 Jun 2010 18:52:08 +0100 Subject: [PATCH] If checkExistingAuth() fails, log the user out. --- framework/Core/lib/Horde/Registry.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.11.0