Example #1
0
        public RegisterMembersReplayModel LogOnMembers(RequestLogOnMembersModel condtion)
        {
            MembersService             ms     = new MembersService();
            RegisterMembersReplayModel result = ms.CheckMemberLoginNameandPwd(condtion);

            if (result.ReturnCode == EnumErrorCode.Success)
            {
                //保存登陆信息
                FormsAuthentication.SetAuthCookie(result.UserInfo.UserId, true);
                //保存日志
                SysManagerService.CreateSysUserLog(new SysUserLogModel()
                {
                    SysUserId = result.UserInfo.UserId,
                    Describe  = "用户登录,IP地址:" + System.Web.HttpContext.Current.Request.UserHostAddress + "[" + condtion.DeviceInfo + "]"
                });
            }
            return(result);
        }