From e12e27a610bda205c45c6e4ada01d8f76c3fc169 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 9 Aug 2011 15:41:03 +0200 Subject: [PATCH] Raise error when authentication fails --- plugins/kolab_core/rcube_kolab.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/kolab_core/rcube_kolab.php b/plugins/kolab_core/rcube_kolab.php index 5d8bb825..a97512e9 100644 --- a/plugins/kolab_core/rcube_kolab.php +++ b/plugins/kolab_core/rcube_kolab.php @@ -99,6 +99,13 @@ class rcube_kolab Auth::setCredential('password', $pwd); self::$ready = true; } + else { + raise_error(array( + 'code' => 600, 'type' => 'php', + 'file' => __FILE__, 'line' => __LINE__, + 'message' => sprintf("Unable to authenticate user %s!", $_SESSION['username'])), + true, true); + } // Register shutdown function for saving cache/session objects $rcmail->add_shutdown_function(array('rcube_kolab', 'shutdown'));