public function TfaBasicRecoveryCodeSetup::deleteCodes in TFA Basic plugins 7
Delete existing codes.
Return value
int
1 call to TfaBasicRecoveryCodeSetup::deleteCodes()
- TfaBasicRecoveryCodeSetup::storeCodes in includes/
tfa_recovery.inc - Save codes for account.
File
- includes/
tfa_recovery.inc, line 193 - class for TFA Basic
Class
- TfaBasicRecoveryCodeSetup
- Class TfaBasicRecoveryCode
Code
public function deleteCodes() {
// Delete any existing codes.
$num_deleted = db_delete('tfa_recovery_code')
->condition('uid', $this->context['uid'])
->execute();
return $num_deleted;
}