예제 #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);
 }