Method | Description | |
---|---|---|
HashPassword ( string password, string salt, bool secure = false ) : string | ||
IsAuthenticated ( ) : bool | ||
Login ( string username, string password ) : bool | ||
Login ( string username, string password, bool persist, int length = 28 ) : bool | ||
Logout ( ) : void |
Method | Description | |
---|---|---|
Authenticate ( string username, string hash ) : bool | ||
Authenticate ( string username, string hash, bool persist, int length = 28 ) : bool | ||
CreateCookie ( string username, string hash, int days = 28 ) : void | ||
ExpireCookie ( ) : void | ||
GetCookie ( ) : System.Web.HttpCookie |
protected static Authenticate ( string username, string hash ) : bool | ||
username | string | |
hash | string | |
return | bool |
protected static Authenticate ( string username, string hash, bool persist, int length = 28 ) : bool | ||
username | string | |
hash | string | |
persist | bool | |
length | int | |
return | bool |
protected static CreateCookie ( string username, string hash, int days = 28 ) : void | ||
username | string | |
hash | string | |
days | int | |
return | void |
protected static GetCookie ( ) : System.Web.HttpCookie | ||
return | System.Web.HttpCookie |
public static HashPassword ( string password, string salt, bool secure = false ) : string | ||
password | string | |
salt | string | |
secure | bool | |
return | string |
public static Login ( string username, string password ) : bool | ||
username | string | |
password | string | |
return | bool |
public static Login ( string username, string password, bool persist, int length = 28 ) : bool | ||
username | string | |
password | string | |
persist | bool | |
length | int | |
return | bool |