Beispiel #1
0
        public ActionResult Index()
        {
            ViewData["user_id"] = authInfo.GetUserID();
            ViewData["auth"]    = authStor.GetAuthMethod();

            return(View());
        }
Beispiel #2
0
        public ActionResult Logout()
        {
            string auth = authStor.GetAuthMethod();

            authInfo.SignOut();

            if (auth != "forms")
            {
                ViewData["logout"] = ssoUrl + WebConfigurationManager.AppSettings["SSO_LOGOUT"];
            }

            return(View());
        }