VisuUserMgmt.Login (METH)
METHOD Login : VUM_ReturnValues
It executes the login It works with both legacy and runtime-based user management If everything is correct the function returns VUM_ReturnValues.ERR_OK.
In the case of logging in a user what needs to change the password at the first login, the error returned error will be VUM_ReturnValues.ERR_CHANGE_PASSWORD The caller of this method is responsible for handling the error code regarding changing of password, no automatism will be triggered to force a password change
see VUM_ReturnValues (ENUM) where possible error reasons are described.
- InOut:
Scope
Name
Type
Comment
Return
LoginVUM_ReturnValuesInput
pClientPOINTER TO BYTE
A pointer to the visualization client - POINTER TO VisuElems.VisuStructClientData
wstUserNameWSTRING(79)The user name
wstPasswordWSTRING(79)The password of the user
Output
wstFullNameIfAvailableWSTRINGThe full name of the user, it it’s available
dwUserGroupIDDWORDThe group id where the user belongs to
adwUserGroupIDsARRAY [0..VUM_Constants.VISU_VUM_MAX_GROUPS_PER_USER] OF DWORD
Array of user group ids. In the first entry there’s the user group id same of dwUserGroupID
dwUserGroupCountDWORDNumber of additional user groups
bDeactivatedBOOLIs the user deactivated