Property | Type | Description | |
---|---|---|---|
Created_At | System.DateTime | ||
Created_By | int | ||
Expires_At | System.DateTime | ||
Modified_At | System.DateTime | ||
Name | string | ||
Reset_Password_Key | string | ||
SysAdmin_ID | int | ||
UserID | int | ||
UserType | int | ||
createdat | System.DateTime | ||
createdby | String | ||
modifiedat | System.DateTime | ||
monthsLeft | int | ||
name | String | ||
sysAdmin | string | ||
username | string | ||
usertype | int |
Method | Description | |
---|---|---|
CreatePasswordHash ( string pwd, string salt ) : string | ||
CreateSalt ( int size ) : string | ||
Password_Generator ( ) : string | ||
changePassword ( int UserID, string newPass ) : void | ||
createUser ( int UserID, int UserType, string password, string name, string email, System.DateTime Expires_At, int SysAdmin_ID ) : bool | ||
createUser ( int UserID, int UserType, string password, string name, string email, int created_by ) : bool | ||
deleteUser ( ) : void | ||
displayAllUsers ( ) : List |
||
displayAssignedUsers ( int pollid, int usertype ) : List |
Returns a list of poll masters who have been assigned to a given poll. List generic is userModel
|
|
displayPollAdminUsers ( ) : List |
Returns a set of all poll admin users in the database
|
|
displayPollMasterUsers ( ) : List |
Returns a set of all poll masters in database.
|
|
displayUnassignedUsers ( int pollid, int usertype ) : List |
Returns a list of poll masters who have not been assigned to a given poll. List generic is userModel
|
|
getNewID ( ) : int | ||
getUser ( int UserID ) : |
||
getUserList ( ) : List |
||
getUserType ( int uid ) : int |
Returns the user type code for a specified userid. (i.e 1 for poll user)
|
|
get_details ( int uid ) : |
||
get_sys_admin_details ( int uid ) : |
||
updateUser ( int UserID, System.DateTime Expires_At, string Name, string username ) : void | ||
updateUser ( int UserID, string Name, string username ) : void | ||
userModel ( ) : System | ||
userModel ( int UserID ) : System | ||
verify ( string username ) : int |
Takes a username and checks the user exists in the system and returns the user's userid code.
|
|
verify ( string username, string password ) : int |
Takes a username and password, checks the user exists in the system and returns the user's userid code.
|
|
verify_as_sys_admin ( string username, string password ) : int |
Method | Description | |
---|---|---|
sysAdminExist ( string email ) : bool | ||
userExist ( string email ) : bool |
public CreatePasswordHash ( string pwd, string salt ) : string | ||
pwd | string | |
salt | string | |
return | string |
public changePassword ( int UserID, string newPass ) : void | ||
UserID | int | |
newPass | string | |
return | void |
public createUser ( int UserID, int UserType, string password, string name, string email, System.DateTime Expires_At, int SysAdmin_ID ) : bool | ||
UserID | int | |
UserType | int | |
password | string | |
name | string | |
string | ||
Expires_At | System.DateTime | |
SysAdmin_ID | int | |
return | bool |
public createUser ( int UserID, int UserType, string password, string name, string email, int created_by ) : bool | ||
UserID | int | |
UserType | int | |
password | string | |
name | string | |
string | ||
created_by | int | |
return | bool |
public displayAssignedUsers ( int pollid, int usertype ) : List |
||
pollid | int | |
usertype | int | |
return | List |
public displayUnassignedUsers ( int pollid, int usertype ) : List |
||
pollid | int | |
usertype | int | |
return | List |
public get_sys_admin_details ( int uid ) : |
||
uid | int | |
return |
public updateUser ( int UserID, System.DateTime Expires_At, string Name, string username ) : void | ||
UserID | int | |
Expires_At | System.DateTime | |
Name | string | |
username | string | |
return | void |
public updateUser ( int UserID, string Name, string username ) : void | ||
UserID | int | |
Name | string | |
username | string | |
return | void |
public verify ( string username ) : int | ||
username | string | username of user to verify |
return | int |
public verify ( string username, string password ) : int | ||
username | string | username of user to verify |
password | string | password of user to verify |
return | int |
public verify_as_sys_admin ( string username, string password ) : int | ||
username | string | |
password | string | |
return | int |