CakeDC\Users\Controller\Component\GoogleAuthenticatorComponent::verifyCode PHP Method

verifyCode() public method

verifyCode Verifying tfa code with shared secret
public verifyCode ( string $secret, string $code ) : boolean
$secret string of the user
$code string from verification form
return boolean
    public function verifyCode($secret, $code)
    {
        return $this->tfa->verifyCode($secret, $code);
    }