WRDAuthPlugin::LoginById (open)
Logs in a user by ID
Syntax
LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";
RECORD FUNCTION LoginById(INTEGER userid, BOOLEAN is_impersonation, RECORD options)
Parameters
INTEGER userid
WRD id of the user to login
BOOLEAN is_impersonation
Whether this is an impersonated login
RECORD options
Options
allowlogout
Whether to allow logout (defaults to TRUE)
browsertriplet
Browser triplet
setcookies
Set cookies (defaults to TRUE)
Return value
RECORD
Login result
code
Error code
submitinstruction
Submit instruction (used to return a SAML IdP login response)
success
TRUE if login was successfull