public function MobileNumberInterface::verifyCode in Mobile Number 7
Verifies input code matches code sent to user.
Parameters
string $code: Input code.
string|NULL $token: Verification token, if verification code was not sent in this session.
Return value
bool TRUE if matches
1 method overrides MobileNumberInterface::verifyCode()
- MobileNumber::verifyCode in src/
MobileNumber.php - Verifies input code matches code sent to user.
File
- src/
MobileNumberInterface.php, line 104 - MobileNumberInterface.
Class
- MobileNumberInterface
- Provides an interface for defining mobile numbers.
Code
public function verifyCode($code, $token = NULL);