WRDAuthPlugin::LoginSecondFactor (open)
Logs in a user by password
Syntax
LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";
RECORD FUNCTION LoginSecondFactor(STRING loginproof, STRING type, RECORD data, RECORD options)
Parameters
STRING loginproof
Login proof as generated by Login
STRING type
Second factor type
RECORD data
Second factor data
STRING code
TOTP code
RECORD options
Options (passed to support object / wrdauth)
browsertriplet
Browser triplet
logincontrol
Encrypted logincontrol token (passed in webvariable 'wrdauth_logincontrol')
rawlogin
Login directly to WRD, do not use supportobject alternative logins. You may need this if your support callback requires a 'standard' login as its fallback
Return value
RECORD
Login result
code
Login error code
submitinstruction
Form action to execute to complete SAML / external login flow
success
Whether the user was logged in successfully