Method | Description | |
---|---|---|
Authenticate ( string &username, string password, bool persist ) : bool |
Validate user identity by checking username and password and sets authentication ticket that is based on cookie
|
|
EnsurePermission ( string permission ) : void | ||
LogOut ( ) : void |
Logs out to logged user.
|
|
SetAuthenticationTicket ( string username, bool persist ) : void |
Sets authentication cookie.
|
public static Authenticate ( string &username, string password, bool persist ) : bool | ||
username | string | /// Username to be validated (required). |
password | string | /// User Password to be validated(required). |
persist | bool | /// true to make ticket persistent? (beni hatırla seçeneği, güvenlik açısından pek kullanmıyoruz.) |
return | bool |
public static EnsurePermission ( string permission ) : void | ||
permission | string | |
return | void |
public static SetAuthenticationTicket ( string username, bool persist ) : void | ||
username | string | /// Validated Username (required). |
persist | bool | /// is persistent authentication tikcet? (remember me, we don't use this for reasons considering with security) |
return | void |