$credentials['auth_ob'] = $this;
- try {
- $result = $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['authenticate'], array('args' => array($userId, $credentials), 'noperms' => true));
- } catch (Horde_Auth_Exception $e) {
- throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
- }
+ $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['authenticate'], array('args' => array($userId, $credentials), 'noperms' => true));
}
/**
return _("Your login has expired.");
case Horde_Auth::REASON_MESSAGE:
- return Horde_Util::getFormData(Horde_Auth::REASON_MSG_PARAM);
+ $msg = Horde_Auth::getAuthError(true);
+ if (!$msg) {
+ Horde_Util::getFormData(Horde_Auth::REASON_MSG_PARAM);
+ }
+ return $msg;
default:
return '';