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 loginproofLogin proof as generated by Login
STRING typeSecond factor type
RECORD dataSecond factor data
STRING codeTOTP code
RECORD optionsOptions (passed to support object / wrdauth)
browsertripletBrowser triplet
logincontrolEncrypted logincontrol token (passed in webvariable 'wrdauth_logincontrol')
rawloginLogin 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
RECORDLogin result
codeLogin error code
submitinstructionForm action to execute to complete SAML / external login flow
successWhether the user was logged in successfully