FOFEncryptTotp::checkCode
Check is the given passcode $code is a valid TOTP generated using secret key $secret
Signature
public function checkCode(string
$secret,
string
$codeĀ )
Parameters
-
$secret
- The Base32-encoded secret key
-
$code
- The passcode to check
Returns
- boolean
- True if the code is valid