public void StartDebugging(string username) { StopDebugging(); var user = FindUser.Find(username); if (user == null) { return; } var result = LoginUser.Login(user, false); if (!result.Success) { return; } SiteDebugger.StartDebugging(DebugWebLoginUserKey); }
public IWebAuthenticateUserResult Authenticate(string username, string password, bool persist) { var authenticateResult = AuthenticateUser.Authenticate(username, password); var state = authenticateResult.State; var authenticatedUser = authenticateResult.User; var success = state == AuthenticateUserResultState.Success; if (success) { var loginResult = LoginWebUser.Login(authenticatedUser, persist); success = loginResult.Success; AuthenticatedUser = authenticatedUser; } return(new WebAuthenticateUserResult { State = state, Success = success, User = authenticatedUser }); }
public void Process(INewUser value) { LoginUser.Login(value, false); }