C# Class BCR.UserDatabase

ファイルを表示 Open project: jeroenwalter/ComicRackWeb Class Usage Examples

Public Methods

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

Private Methods

Method Description
UserDatabase ( ) : System

Method Details

AddUser() public static method

public static AddUser ( string username, string password ) : bool
username string
password string
return bool

GetUserFromApiKey() public static method

public static GetUserFromApiKey ( string apiKey ) : IUserIdentity
apiKey string
return IUserIdentity

GetUserId() public static method

public static GetUserId ( string username ) : int
username string
return int

LoginUser() public static method

public static LoginUser ( string username, string password ) : string
username string
password string
return string

RemoveApiKey() public static method

public static RemoveApiKey ( string apiKey ) : void
apiKey string
return void

RemoveUser() public static method

public static RemoveUser ( int userid ) : bool
userid int
return bool

SetFullName() public static method

public static SetFullName ( int userid, string fullname ) : bool
userid int
fullname string
return bool

SetPassword() public static method

public static SetPassword ( int userid, string password ) : bool
userid int
password string
return bool