Ejemplo n.º 1
0
        public static bool CheckUserLogin(HttpContextBase httpContext)
        {
            LogHelper.WriteDebug("CheckUserLogin log", "", httpContext.Request.Cookies);

            var rsp = UserInfoBo.UserLogin(GetUIUserLoginNameOrEmail(httpContext), GetUIUserPassword(httpContext));

            return(rsp.IsSuccess);
        }
Ejemplo n.º 2
0
        public ActionResult UserLogin(UIUserInfo uiUserInfo)
        {
            string logionName = string.IsNullOrEmpty(uiUserInfo.LoginName) ? uiUserInfo.UserEmail : uiUserInfo.LoginName;
            var    rsp        = UserInfoBo.UserLogin(logionName, uiUserInfo.Password);

            if (rsp.IsSuccess)
            {
                UILoginHelper.WriteUserInfo(rsp.ResultID, logionName, uiUserInfo.Password, HttpContext);
            }
            return(Json(rsp));
        }