usersecurity::oUser |
See Also ß |
The structure for the oUser member is as follows:
CREATE CURSOR WWUSERS ; ( PK C (10),; USERNAME C (15),; PASSWORD C (15),; FULLNAME C (40),; MAPPEDID C (15),; EMAIL M ,; NOTES M ,; PROPERTIES M ,; LOG M ,; ADMIN L ,; CREATED T ,; LASTON T ,; LOGONCOUNT I ,; ACTIVE L ,; EXPIRESON D )
Members are accessed like this:
oLogon = CREATE('usersecurity') oLogon.Authenticate('rstrahl','mypassword') oUser = oLogon.oUser ? oUser.Username ? oUser.Password ? oUser.FullName
MappedId
Use this value to map the user to an application specific ID such as PK for example. You can assign this value when a new user is created to avoid continued cross lookups everytime the login is used. You can also use this temporarily.
Properties
This field can contain custom property values for the user. The values are stored in XML format and can be retrieved with the SetProperty and GetProperty methods of the usersecurity object.
Active
Determines whether the account is active. When lookups are performed this flag is checked prior to checking username and password.
ExpiresOn
When a login is successful this value is checked to see if the account has expired. If this value is blank no check is performed.