\CodeFareith\CfGoogleAuthenticator\UtilityGoogleAuthenticatorUtility

Google Authenticator Utility

This utility class helps to verify one-time passwords and to check them against a given secret. A discrepancy can also be set to compensate any time differences. Caution: do not set this value too high as it is a safety risk.

Summary

Methods
Properties
Constants
verifyOneTimePassword()
No public properties found
OTP_REGENERATION
OTP_LENGTH
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

OTP_REGENERATION

OTP_REGENERATION = 30

OTP_LENGTH

OTP_LENGTH = 6

Methods

verifyOneTimePassword()

verifyOneTimePassword(string  secret, string  otp, int  discrepancy = null) : 

Parameters

string secret
string otp
int discrepancy

Returns