From: Michael M Slusarz Date: Tue, 25 Jan 2011 08:34:27 +0000 (-0700) Subject: Make sure there is always logout reason set on validation failure X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fa1e55baa56154831e7f32da0916714d60624add;p=horde.git Make sure there is always logout reason set on validation failure --- 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. */