Method | Description | |
---|---|---|
AddUser ( string username, string password ) : bool | ||
GetUserFromApiKey ( string apiKey ) : IUserIdentity | ||
GetUserId ( string username ) : int | ||
LoginUser ( string username, string password ) : string | ||
RemoveApiKey ( string apiKey ) : void | ||
RemoveUser ( int userid ) : bool | ||
SetFullName ( int userid, string fullname ) : bool | ||
SetPassword ( int userid, string password ) : bool |
Method | Description | |
---|---|---|
UserDatabase ( ) : System |
public static AddUser ( string username, string password ) : bool | ||
username | string | |
password | string | |
return | bool |
public static GetUserFromApiKey ( string apiKey ) : IUserIdentity | ||
apiKey | string | |
return | IUserIdentity |
public static GetUserId ( string username ) : int | ||
username | string | |
return | int |
public static LoginUser ( string username, string password ) : string | ||
username | string | |
password | string | |
return | string |
public static RemoveApiKey ( string apiKey ) : void | ||
apiKey | string | |
return | void |
public static RemoveUser ( int userid ) : bool | ||
userid | int | |
return | bool |
public static SetFullName ( int userid, string fullname ) : bool | ||
userid | int | |
fullname | string | |
return | bool |
public static SetPassword ( int userid, string password ) : bool | ||
userid | int | |
password | string | |
return | bool |