Method |
Description |
|
checkPassword ( string $password ) : string |
Check the strength of the password |
|
cleanupOldSessions ( ) |
Cleanup sessions for the current user and sessions that are invalid |
|
getAllowedActions ( ) : array |
|
|
getEncryptedPassword ( string $email, string $password ) : string |
Returns the encrypted password for a user by giving a email/password
Returns false if no user was found for this user/pass combination |
|
getEncryptedString ( string $string, string $salt = null ) : string |
Returns a string encrypted like sha1(md5($salt) . md5($string))
The salt is an optional extra string you can strengthen your encryption with |
|
getUser ( ) : User |
Returns the current authenticated user |
|
isAllowedAction ( string $action = null, string $module = null ) : boolean |
Is the given action allowed for the current user |
|
isAllowedModule ( string $module ) : boolean |
Is the given module allowed for the current user |
|
isLoggedIn ( ) : boolean |
Is the current user logged in? |
|
loginUser ( string $login, string $password ) : boolean |
Login the user with the given credentials. |
|
logout ( ) |
Logout the current user |
|
tearDown ( ) |
Reset our class to make sure no contamination from previous
authentications persists. This signifies a deeper issue with
this class. Solving the issue would be preferable to introducting
another method. This currently only exists to serve the test. |
|