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 baseurlBase url to redirect the user to
INTEGER entityidUserid to reset
RECORD optionsOptions
BOOLEAN skipauditlogDo not log this request to the auditlog - needed to prevent unsollicited link requests from flooding the logs (eg webshop order confiration)
verifierstartCode with which the verifier should start if you want a separate verifier
Return value
RECORDPassword reset link data
entrylinkThe code-entry link (user may be redirected or navigate here). Only if verifierstart is set
verifiedlinkThe verified link (should be emailed to the user). Only if verifierstart is not set
verifierThe 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