public UserLoginInterface(string userId, string userPw) { this.Ip = string.Empty; this.PreWorkId = -1; this.ModuleId = string.Empty; this.userId = string.Empty; this.userPw = string.Empty; this.userId = userId; this.userPw = userPw; this.loginUserInfo = new LoginUserInfo(userId, userPw); this.loginOnlieUserInfo = new LoginOnlieUserInfo(userId); }
private string GetUserName(string userId) { LoginUserInfo info = new LoginUserInfo(userId); return info.GetUserName(); }
public Response ModifyUserPassword(string userId, string userOldPassword, string userNewPassword) { Response response = new Response(); try { string str = new LoginUserInfo(userId, userOldPassword).ChangePassword(userNewPassword); if (string.IsNullOrEmpty(str)) { response.ResultCode = 0L; return response; } response.ErrorMsg = str; } catch (Exception exception) { response.ErrorMsg = exception.Message; } return response; }
public string User_ChangePassword(string sUser, string sOldPassword, string sNewPassword) { LoginUserInfo info = new LoginUserInfo(sUser, sOldPassword); return info.ChangePassword(sNewPassword); }