Method | Description | |
---|---|---|
ProtectPassword ( string password ) : string |
This method will take a password and return the salted hash version to be stored in the database.
|
|
UserAccounts ( ) : System | ||
add_delete_Roles ( string username, string role, bool add ) : void |
Adds or removes roles from a user.
|
|
deleteUser ( string username ) : void |
Deletes a user account as well as all roles associated with it.
|
|
editAccount ( string username, string password, string lname, string fname, bool insert ) : bool |
Allows an account record to be updated.
|
|
getRoles ( ) : |
Retrieves all available roles in the database.
|
|
getUserAccountRecord ( string username ) : |
Retrieves all data associated with a specific user account.
|
|
getUserAssignedRoles ( string username ) : |
Retrieves all roles assigned to a username.
|
|
getUsers ( ) : |
Retrieves all user accounts currently in the system.
|
|
loginTimestamp ( string username ) : void |
Updates the last login timestamp for a specific username.
|
|
setUser ( string username, string lname, string fname, string password ) : void |
Adds a user account record to the database.
|
|
userHasRole ( string username, string role ) : bool |
Checks to see if a user has a role.
|
public ProtectPassword ( string password ) : string | ||
password | string | |
return | string |
public add_delete_Roles ( string username, string role, bool add ) : void | ||
username | string | |
role | string | Role to add or delete |
add | bool | True-Add Role :: False-Remove Role |
return | void |
public editAccount ( string username, string password, string lname, string fname, bool insert ) : bool | ||
username | string | |
password | string | |
lname | string | |
fname | string | |
insert | bool | |
return | bool |
public getUserAccountRecord ( string username ) : |
||
username | string | |
return |
public getUserAssignedRoles ( string username ) : |
||
username | string | |
return |
public loginTimestamp ( string username ) : void | ||
username | string | |
return | void |
public setUser ( string username, string lname, string fname, string password ) : void | ||
username | string | |
lname | string | |
fname | string | |
password | string | |
return | void |
public userHasRole ( string username, string role ) : bool | ||
username | string | |
role | string | Role to check |
return | bool |