protected function TfaRecoveryCode::deleteCodes in Two-factor Authentication (TFA) 8
Delete existing codes.
1 call to TfaRecoveryCode::deleteCodes()
- TfaRecoveryCode::storeCodes in src/
Plugin/ TfaValidation/ TfaRecoveryCode.php - Save recovery codes for current account.
File
- src/
Plugin/ TfaValidation/ TfaRecoveryCode.php, line 224
Class
- TfaRecoveryCode
- Recovery validation class for performing recovery codes validation.
Namespace
Drupal\tfa\Plugin\TfaValidationCode
protected function deleteCodes() {
// Delete any existing codes.
$this
->deleteUserData('tfa', 'tfa_recovery_code', $this->uid, $this->userData);
}