From c09d6ed8a79afd33de903e3d75be1aeee93ad02b Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 19 Aug 2011 07:26:06 +0000 Subject: - Fix logging in as other user after logout (#1487953) git-svn-id: https://svn.roundcube.net/trunk@5093 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/http_authentication/http_authentication.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins/http_authentication') diff --git a/plugins/http_authentication/http_authentication.php b/plugins/http_authentication/http_authentication.php index 6da6488a0..b806679d9 100644 --- a/plugins/http_authentication/http_authentication.php +++ b/plugins/http_authentication/http_authentication.php @@ -30,14 +30,20 @@ class http_authentication extends rcube_plugin function authenticate($args) { + // Allow entering other user data in login form, + // e.g. after log out (#1487953) + if (!empty($args['user'])) { + return $args; + } + if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) { $args['user'] = $_SERVER['PHP_AUTH_USER']; $args['pass'] = $_SERVER['PHP_AUTH_PW']; } - + $args['cookiecheck'] = false; $args['valid'] = true; - + return $args; } -- cgit v1.2.3