You are here

protected function TfaTotpSetup::validate in TFA Basic plugins 7

@copydoc TfaBasePlugin::validate()

Overrides TfaTotp::validate

1 call to TfaTotpSetup::validate()
TfaTotpSetup::validateSetupForm in includes/tfa_totp.inc
@copydoc TfaSetupPluginInterface::validateSetupForm()

File

includes/tfa_totp.inc, line 264
classes for tfa_totp

Class

TfaTotpSetup
Class TfaTotpSetup

Code

protected function validate($code) {
  return $this->ga
    ->verifyCode($this->seed, $code, $this->timeSkew);
}