Commit d400c653 authored by Tim Steiner's avatar Tim Steiner
Browse files

Bug fix in updated Cas Auth Adatper.

parent 21d3f51b
......@@ -49,10 +49,10 @@ class Unl_Auth_Adapter_Cas implements Zend_Auth_Adapter_Interface
if ($this->_adapter->validateTicket()) {
return new Zend_Auth_Result(Zend_Auth_Result::SUCCESS, $this->_adapter->getUsername(), array('Authentication successful.'));
} else {
return $this->_authenticationFailed('Invalid or expired CAS ticket.');
return new Zend_Auth_Result(Zend_Auth_Result::FAILURE, NULL, array('Invalid or expired CAS ticket.'));
}
} else {
return $this->_authenticationFailed('No CAS Ticktet.');
return new Zend_Auth_Result(Zend_Auth_Result::FAILURE, NULL, array('No CAS Ticktet.'));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment