Beispiel #1
0
        public ActionResult Login(string returnUrl, string ssocode = "")
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.UsersController();

            var(redirectUrl, redirectResultUrl, html) = controller.Login(context: context, returnUrl: returnUrl, ssocode: ssocode);
            if (!string.IsNullOrEmpty(redirectUrl))
            {
                return(base.Redirect(redirectUrl));
            }
            if (!string.IsNullOrEmpty(redirectResultUrl))
            {
                return(new RedirectResult(redirectResultUrl));
            }
            ViewBag.HtmlBody = html;
            return(View());
        }