示例#1
0
 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);
 }
示例#2
0
 private string GetUserName(string userId)
 {
     LoginUserInfo info = new LoginUserInfo(userId);
     return info.GetUserName();
 }
示例#3
0
 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;
 }
示例#4
0
 public string User_ChangePassword(string sUser, string sOldPassword, string sNewPassword)
 {
     LoginUserInfo info = new LoginUserInfo(sUser, sOldPassword);
     return info.ChangePassword(sNewPassword);
 }