WRDAuthPlugin::Login (open)

Logs in a user by password

Syntax

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

RECORD FUNCTION Login(STRING loginname, STRING password, RECORD options)

Parameters

STRING loginname

Login name

STRING password

Password

RECORD options

Options (passed to support object / wrdauth)

browsertriplet

Browser triplet

logincontrol

Encrypted logincontrol token (passed in webvariable 'wrdauth_logincontrol')

loginhost

The loginpage that can understand totp and other complete account requests

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