WRDAuthPlugin::ProcessVerificationLink (open)
Processes a verification link and the passed verification code, checks if they are valid
Syntax
LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";
RECORD FUNCTION ProcessVerificationLink(STRING encrypted_data, STRING verifier)Parameters
STRING encrypted_dataContents of _ed variable of the verification/entry link
STRING verifierVerifier code (contents of the verifier variable of the verification link), or the code entered by the user when following the entrylink
Return value
RECORDResult of decoding and verifying
INTEGER entityidEntity id of the user
BOOLEAN expiredWhether the link has expired
DATETIME expiresonDate when the verification link exires
BOOLEAN failedTRUE if the decoding/verification failed
BOOLEAN failed_incorrectverifierTRUE if the verifier code was incorrect
STRING failreasonReason why verification failed
RECORD secretSecret passed to CreateVerificationLink
BOOLEAN successWhether the verification link and code are correct and not expired
BOOLEAN usedmessageData used for marking the link as used