コード例 #1
0
 public void Logout()
 {
     ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, false);
     FormsAuthentication.SignOut();
 }
コード例 #2
0
 public bool Login(string username, string password, string customCredential, bool isPersistent)
 {
     ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true);
     return(LoginInternal(username, password, customCredential, isPersistent, true));
 }
コード例 #3
0
 public bool IsLoggedIn()
 {
     ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true);
     return(HttpContext.Current.User.Identity.IsAuthenticated);
 }
コード例 #4
0
 public bool ValidateUser(string username, string password, string customCredential)
 {
     ApplicationServiceHelper.EnsureAuthenticationServiceEnabled(HttpContext.Current, true);
     return(LoginInternal(username, password, customCredential, false, false));
 }