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_data

Contents of _sr variable of the setup link

Return value

RECORD

Result of decoding and verifying

RECORD challenge

Challenge (same as returned by GenerateSetupSecondFactorLink

INTEGER entityid

Entity id of the user

BOOLEAN expired

Whether the link has expired

DATETIME expireson

Date when the verification link exires

STRING failreason

Reason why verification failed

BOOLEAN success

Whether the verification link and code are correct and not expired