Raise error when authentication fails

This commit is contained in:
Aleksander Machniak 2011-08-09 15:41:03 +02:00
parent ed63a63aba
commit e12e27a610

View file

@ -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'));