Checks if the supplied string is a valid one time emergency password (OTEP) for this user. If it is it will be automatically removed from the user's list of OTEPs.
Signature
public function isValidOtep(integer
$user_id,
[string
$otep = null,
[
$otpConfig = null]] )
Parameters
$user_id
The user ID against which you are checking
$otep
The string you want to test for validity
$otpConfig
Optional; the two factor authentication configuration (automatically fetched if not set)
Returns
boolean
True if it's a valid OTEP or if two factor auth is not enabled in this user's account.