Created
June 4, 2014 11:45
-
-
Save Akii/d8bf20f9b4d764499aa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Authenticate a user (Check various conditions for the user that might invalidate its authentication, eg. password match, domain, IP, etc.) | |
* | |
* @param array $user Data of user. | |
* | |
* @return integer >= 200: User authenticated successfully. | |
* No more checking is needed by other auth services. | |
* >= 100: User not authenticated; this service is not responsible. | |
* Other auth services will be asked. | |
* > 0: User authenticated successfully. | |
* Other auth services will still be asked. | |
* <= 0: Authentication failed, no more checking needed | |
* by other auth services. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment