Examples of ChangePasswordResponse


Examples of l2p.gameserver.loginservercon.lspackets.ChangePasswordResponse

        break;
      case 5:
        packet = new BanIPList(data, loginserver);
        break;
      case 6:
        packet = new ChangePasswordResponse(data, loginserver);
        break;
      case 7:
        packet = new IpAction(data, loginserver);
        break;
      case 0x08:
View Full Code Here

Examples of l2p.loginserver.gameservercon.lspackets.ChangePasswordResponse

      //Encode old password and compare it to sended one, send packet to determine changed or not.
      try
      {
        if(!LoginController.DEFAULT_CRYPT.compare(oldPass, dbPassword))
        {
          ChangePasswordResponse cp1;
          cp1 = new ChangePasswordResponse(accname, false);
          sendPacket(cp1);
        }
        else
        {
          statement = con.prepareStatement("UPDATE accounts SET password = ? WHERE login = ?");
          statement.setString(1, LoginController.DEFAULT_CRYPT.encrypt(newPass));
          statement.setString(2, accname);
          int result = statement.executeUpdate();
          L2LoginClient client = LoginController.getInstance().getAuthedClient(accname);
          if(result != 0)
          {
            Log.add("<acc=\"" + accname + "\" old=\"" + oldPass + "\" new=\"" + newPass + "\" ip=\"" + (client != null ? client.getIpAddress() : "0.0.0.0") + "\" />", "passwords");
          }
          ChangePasswordResponse cp1;
          cp1 = new ChangePasswordResponse(accname, result != 0);
          sendPacket(cp1);
        }
      }
      catch(Exception e1)
      {
View Full Code Here

Examples of lineage2.gameserver.network.loginservercon.lspackets.ChangePasswordResponse

        break;
      case 0x04:
        packet = new GetAccountInfo();
        break;
      case 0x06:
        packet = new ChangePasswordResponse();
        break;
      case 0xff:
        packet = new PingRequest();
        break;
      default:
View Full Code Here

Examples of lineage2.loginserver.gameservercon.lspackets.ChangePasswordResponse

      }
      try
      {
        if (!Config.DEFAULT_CRYPT.compare(oldPass, dbPassword))
        {
          ChangePasswordResponse cp1;
          cp1 = new ChangePasswordResponse(accname, false);
          sendPacket(cp1);
        }
        else
        {
          statement = con.prepareStatement("UPDATE accounts SET password = ? WHERE login = ?");
          statement.setString(1, Config.DEFAULT_CRYPT.encrypt(newPass));
          statement.setString(2, accname);
          int result = statement.executeUpdate();
          ChangePasswordResponse cp1;
          cp1 = new ChangePasswordResponse(accname, result != 0);
          sendPacket(cp1);
        }
      }
      catch (Exception e1)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.