public static bool CheckUserLogin(HttpContextBase httpContext) { LogHelper.WriteDebug("CheckUserLogin log", "", httpContext.Request.Cookies); var rsp = UserInfoBo.UserLogin(GetUIUserLoginNameOrEmail(httpContext), GetUIUserPassword(httpContext)); return(rsp.IsSuccess); }
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)); }