Exemplo n.º 1
0
        public bool Authenticate(LoginRequest request, IEnumerable <IAuthenticationStrategy> strategies)
        {
            _auditor.ApplyHistory(request);
            var authResult = strategies.Any(x => x.Authenticate(request));

            _auditor.Audit(request);
            return(authResult);
        }
        public FubuContinuation post_login(LoginRequest request)
        {
            _auditor.ApplyHistory(request);

            bool authenticated = _service.Authenticate(request);

            _auditor.Audit(request);

            SetRememberMeCookie(request);

            if (authenticated)
            {
                return(_handler.LoggedIn(request));
            }

            return(FubuContinuation.TransferTo(request, "GET"));
        }