public ActionResult Logout() { using (new Tracer()) { FormsAuthentication.SignOut(); WebSecurity.Logout(); UserProfile.ClearCurrentVisitor(); return(Redirect(WebRequestContext.Localization.GetBaseUrl())); } }
public override bool ValidateUser(string username, string password) { UserProfile userProfile = UserProfileFactory.GetUserProfile(username); if (userProfile != null && userProfile.VerifyPassword(password)) { userProfile.SetAsCurrentVisitor(); return(true); } UserProfile.ClearCurrentVisitor(); return(false); }