authenticate()
authenticate(array $credentials = array()) : mixed
Authenticate to the backend.
Parameters
array | $credentials | An array of login credentials. If empty, attempts to login to the cached session. 'password' - (string) The user password. 'backend' - (string) The backend key to use (from backends.php). 'userId' - (string) The username. |
Throws
- \Horde_Auth_Exception
Returns
mixed —If authentication was successful, and no session exists, an array of data to add to the session. Otherwise returns false.