private bool GetNewUser(string userId, string userPw, string sIp, int moduleId, int PreWorkId, bool IsChecked, ref UserInfoEntity userInfoEntity, out string errorMessage) { errorMessage = string.Empty; UserLoginInterface interface2 = new UserLoginInterface(userId, userPw, sIp, moduleId.ToString(), PreWorkId); bool flag = true; if (!IsChecked) { flag = interface2.CheckUserPasswordOutDays(out errorMessage); } if (!flag) { return false; } interface2.PreWorkId = PreWorkId; return interface2.Login(ref userInfoEntity, ref errorMessage); }
public bool LoginSys_CheckUser(string UserId, string Pass) { try { UserLoginInterface interface2 = new UserLoginInterface(UserId, Pass, "4096"); return interface2.IsCutUser(); } catch (Exception exception) { ErrorMsg msg = new ErrorMsg("LoginSys", "IsUserButCUser", exception.Message); this.m_LogHelper.WriteError(msg); return false; } }