WRDAuthPlugin::CreatePasswordResetLink (open)

Create a password reset link

Syntax

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

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

Parameters

STRING baseurl

Base url to redirect the user to

INTEGER entityid

Userid to reset

RECORD options

Options

BOOLEAN skipauditlog

Do not log this request to the auditlog - needed to prevent unsollicited link requests from flooding the logs (eg webshop order confiration)

verifierstart

Optional code with which the verifier should start

Return value

RECORD

Password reset link data

entrylink

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

verifiedlink

The verified link (should be emailed to the user)

verifier

The verification code (should be emailed to the user)

Description

Create a password reset link for email, with optionally a raw code-enty for verification