\CodeFareith\CfGoogleAuthenticator\ServiceGoogleAuthenticatorService

Google Authenticator Service

The Google Authenticator Service handles backend login requests. When a user tries to log in, this service checks wether the user has enabled the Google Authenticator. If so, the given code (if any) is validated against the stored secret and on success, the user can proceed. If the user has not enabled the Google Authenticator, the login request is delegated to the default authentication service.

Summary

Methods
Properties
Constants
init()
authUser()
No public properties found
AUTH_FAIL_AND_STOP
AUTH_FAIL_AND_PROCEED
AUTH_SUCCEED_AND_PROCEED
AUTH_SUCCEED_AND_STOP
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

AUTH_FAIL_AND_STOP

AUTH_FAIL_AND_STOP = -1

AUTH_FAIL_AND_PROCEED

AUTH_FAIL_AND_PROCEED = 100

AUTH_SUCCEED_AND_PROCEED

AUTH_SUCCEED_AND_PROCEED = 70

AUTH_SUCCEED_AND_STOP

AUTH_SUCCEED_AND_STOP = 200

Methods

init()

init() : 

Returns

authUser()

authUser(array  user) : 

Parameters

array user

Returns