WRDAuthPlugin::CreateVerificationLink (open)

Creates a link that can be used to verify a user is present at a account page

Syntax

LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";

RECORD FUNCTION CreateVerificationLink(STRING baseurl, INTEGER entityid, RECORD options)

Parameters

STRING baseurl

URL of the login page

INTEGER entityid

User id

RECORD options

Options

RECORD secret

Secret to encode in the verification link

STRING verifierstart

Initial characters for the verification code

Return value

RECORD

Verification link data

entrylink

The code-entry link (user may be redirected or navigate here)

validuntil

Until when the link is valid

verifiedlink

The verified link (should be emailed to the user)

verifier

The verification code (should be emailed to the user)