Beispiel #1
0
        public ActionResult CheckUser(string test1, string test2, bool test3)
        {
            try
            {
                var checkUser = _systemService.CheckUser(test1, test2);
                if (!checkUser)
                {
                    return(Json(new { success = false }));
                }

                FormsAuthentication.SetAuthCookie(test1, false);
                return(Json(new { success = true }));
            }
            catch (Exception e)
            {
                Log.Error("Check User!", e);
                return(Json(new { success = false }));
            }
        }