Ejemplo n.º 1
0
        public FubuContinuation Execute(FormsLoginRequest request)
        {
            if(_verifier.Verify(request.Username, request.Password))
            {
                //home url
                var homeUrl = _urls.UrlFor(PassportConfiguration.HomeInputModel);
                return FubuContinuation.RedirectTo(homeUrl);
            }

            //something like that?
            return FubuContinuation.RedirectTo(PassportConfiguration.LogonRouteInputModel);
        }
Ejemplo n.º 2
0
        public FubuContinuation Execute(FormsLoginRequest request)
        {
            if (_verifier.Verify(request.Username, request.Password))
            {
                //home url
                var homeUrl = _urls.UrlFor(PassportConfiguration.HomeInputModel);
                return(FubuContinuation.RedirectTo(homeUrl));
            }

            //something like that?
            return(FubuContinuation.RedirectTo(PassportConfiguration.LogonRouteInputModel));
        }