WRDAuthPlugin::ProcessSetupSecondFactorLink (open)
Processes a two factor setup link, checks if it is valid
Syntax
LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";
RECORD FUNCTION ProcessSetupSecondFactorLink(STRING encrypted_data)Parameters
STRING encrypted_dataContents of _sr variable of the setup link
Return value
RECORDResult of decoding and verifying
RECORD challengeChallenge (same as returned by GenerateSetupSecondFactorLink
INTEGER entityidEntity id of the user
BOOLEAN expiredWhether the link has expired
DATETIME expiresonDate when the verification link exires
STRING failreasonReason why verification failed
BOOLEAN successWhether the verification link and code are correct and not expired