protected function TfaDataTrait::deleteUserData in Two-factor Authentication (TFA) 8
Deletes data stored for the current validated user account.
Parameters
string $module: The name of the module the data is associated with.
string $key: The name of the data key.
int $uid: The user id.
\Drupal\user\UserDataInterface $user_data: User data object to store user specific information.
3 calls to TfaDataTrait::deleteUserData()
- BasicDisable::submitForm in src/
Form/ BasicDisable.php - Form submission handler.
- TfaRecoveryCode::deleteCodes in src/
Plugin/ TfaValidation/ TfaRecoveryCode.php - Delete existing codes.
- TfaTrustedBrowser::deleteTrusted in src/
Plugin/ TfaLogin/ TfaTrustedBrowser.php - Delete users trusted browser.
File
- src/
TfaDataTrait.php, line 64
Class
- TfaDataTrait
- Provides methods to save tfa user settings.
Namespace
Drupal\tfaCode
protected function deleteUserData($module, $key, $uid, UserDataInterface $user_data) {
$user_data
->delete($module, $uid, $key);
}