public function MobileNumberTfa::begin in Mobile Number 8
Same name and namespace in other branches
- 2.0.x src/Plugin/TfaValidation/MobileNumberTfa.php \Drupal\mobile_number\Plugin\TfaValidation\MobileNumberTfa::begin()
TFA process begin.
Overrides TfaSendInterface::begin
File
- src/
Plugin/ TfaValidation/ MobileNumberTfa.php, line 87 - MobileNumberTfa.php
Class
- MobileNumberTfa
- Class MobileNumberTfa is a validation and sending plugin for TFA.
Namespace
Drupal\mobile_number\Plugin\TfaValidationCode
public function begin() {
if (!$this->code) {
if (!$this
->sendCode()) {
$this->messenger
->addError(t('Unable to deliver the code. Please contact support.'));
}
}
}