Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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
            });
        }
Exemplo n.º 3
0
 public void Process(INewUser value)
 {
     LoginUser.Login(value, false);
 }