Class UserSecurity |
See Also ß | Topics |
Parent Class: custom
Class that can be used to manage user logons via tables.
Name | Type | Description |
Authenticate | ![]() | This is the main method used to authenticate a user. Depending on whether the authentication mode is set to use the internal file or NT Authentication this method returns .T. or .F. for success. o.Authenticate(lcusername, lcpassword) |
AuthenticateNT | ![]() | Checks the username and password against NT Authentication. o.AuthenticateNT(lcUsername, lcPassword, lcDomain, lnFlags) |
CreateTable | ![]() | Creates a new user table and or updates an existing file to the latest structure. Make sure cFileName is set and includes a .DBF extension. o.CreateTable(lcFilename) |
DeleteUser | ![]() | Deletes the currently selected user as specified in the oUser member. User is accessed by his PK. o.DeleteUser() |
GetUser | ![]() | Retrieves a user data record object without affecting the currently active user. Pass in a PK or Username and Password. GetUser always returns a record unless the record cannot be found. Use Logon to check for Active and Expired status. o.getuser(lcPK, lcPassword) |
NewUser | ![]() | Creates a new user record and stores it in the user data. Note this method returns .T. or .F. only, but creates an empty oUser structure that you can fill. Then use SaveUser() to commit the new user's settings. o.newuser() |
Reindex | ![]() | Compacts and reindexes the user file. o.reindex(llUpdateStructure) |
SaveUser | ![]() | Saves the currently active user as specified in the oUser member object to file. o.SaveUser() |
calias | ![]() | Alias of the user file. |
cdomain | ![]() | Domain name when using NT Authentication for request. |
cerrormsg | ![]() | Holds error messages when lError = True or when any methods return False. |
cfilename | ![]() | Filename for the user file. |
cpassword | ![]() | Password for the user. |
cusername | ![]() | User name for the user. |
lerror | ![]() | Error Flag. True when an error occurs during any operation. Set but not required as most methods return True or False. |
nauthenticationmode | ![]() | Determines how authentication of the username and password is performed. |
ndefaultaccounttimeout | ![]() | The default value when the account should time out in days. Leave this value at 0 to force the account to never timeout. |
ouser | ![]() | The user data for the current active user. This object contains all the field values of the user table. |