From fa1e55baa56154831e7f32da0916714d60624add Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 25 Jan 2011 01:34:27 -0700 Subject: [PATCH] Make sure there is always logout reason set on validation failure --- framework/Core/lib/Horde/Registry.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 5abda8286..fb18ef80c 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -2136,7 +2136,16 @@ class Horde_Registry return false; } - return $auth->validateAuth(); + if ($auth->validateAuth()) { + return true; + } + + /* Make sure there is always a logout reason set. */ + if (!$auth->getError()) { + $auth->setError(Horde_Auth::REASON_SESSION); + } + + return false; } /* NLS functions. */ -- 2.11.0