Return true if code is valid or false if not
Modules MUST implement this method.
Usage
$bool = $tfa->isValidUserCode(User $user, $code, array $settings);
Arguments
Name | Type(s) | Description |
---|---|---|
user | User | |
code | string, int | |
settings | array | User configured TFA settings |
Return value
bool
int
Returns true if valid, false if not, or optionally integer 0 if code was valid but is now expired
Exceptions
Method can throw exceptions on error:
WireException
API reference based on ProcessWire core version 3.0.236