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
Code with which the verifier should start if you want a separate verifier
Return value
RECORD
Password reset link data
entrylink
The code-entry link (user may be redirected or navigate here). Only if verifierstart is set
verifiedlink
The verified link (should be emailed to the user). Only if verifierstart is not set
verifier
The verification code (should be emailed to the user). Only if verifierstart is set
Description
Create a password reset link for email, with optionally a raw code-enty for verification