public function MobileNumberTfa::verifyCode in Mobile Number 7
Verifies the given code with this session's verification token.
Parameters
string $code: Code.
Return value
bool Verification status.
1 call to MobileNumberTfa::verifyCode()
- MobileNumberTfa::validateForm in src/
MobileNumberTfa.php - Validate form callback.
File
- src/
MobileNumberTfa.php, line 195 - Contains MobileNumberTfa.
Class
- MobileNumberTfa
- Class MobileNumberTfa is a validation and sending plugin for TFA.
Code
public function verifyCode($code) {
return $this->isValid = $this->mobileNumber
->verifyCode($code, $this->verificationToken);
}