Method | Description | |
---|---|---|
CreateUser ( string username, string password, bool op = false ) : bool |
Creates a user.
|
|
DeleteUser ( string username ) : bool |
Removes a user from the database by name
|
|
FindUsersByPrefix ( string search ) : string[] |
Finds a list of users matching a prefix
|
|
GetUser ( string username ) : DbPlayer |
Gets the user from the database by name
|
|
GetUserPassword ( string username ) : string |
Gets the user password.
|
|
UpdateUser ( string username, bool op = false ) : bool |
Updates a user in the database.
|
|
UpdateUser ( string username, string password ) : bool |
Updates a user in the database.
|
|
UpdateUser ( string username, string password, bool op = false ) : bool |
Updates a user in the database.
|
|
UserExists ( string username ) : bool |
Checks if a user exists
|
Method | Description | |
---|---|---|
Hash ( string username, string password ) : string | ||
Initialise ( ) : void |
public static CreateUser ( string username, string password, bool op = false ) : bool | ||
username | string | Username. |
password | string | Password. |
op | bool | If set to |
return | bool |
public static DeleteUser ( string username ) : bool | ||
username | string | Username. |
return | bool |
public static FindUsersByPrefix ( string search ) : string[] | ||
search | string | Search. |
return | string[] |
public static GetUser ( string username ) : DbPlayer | ||
username | string | Username. |
return | DbPlayer |
public static GetUserPassword ( string username ) : string | ||
username | string | Username. |
return | string |
public static UpdateUser ( string username, bool op = false ) : bool | ||
username | string | Username. |
op | bool | If set to |
return | bool |
public static UpdateUser ( string username, string password ) : bool | ||
username | string | Username. |
password | string | Password. |
return | bool |
public static UpdateUser ( string username, string password, bool op = false ) : bool | ||
username | string | Username. |
password | string | Password. |
op | bool | If set to |
return | bool |
public static UserExists ( string username ) : bool | ||
username | string | Username. |
return | bool |