Examples of SecondaryPasswordAuth


Examples of lineage2.gameserver.utils.SecondaryPasswordAuth

      }
      client.setBonus(bonus);
      client.setBonusExpire(bonusExpire);
      if (Config.SECOND_AUTH_ENABLED)
      {
        client.setSecondaryAuth(new SecondaryPasswordAuth(client, _2ndPassword, _2ndWrongAttempts, _2ndUnbanTime));
      }
      GameClient oldClient = LoginServerCommunication.getInstance().addAuthedClient(client);
      if (oldClient != null)
      {
        oldClient.setAuthed(false);
View Full Code Here

Examples of lineage2.gameserver.utils.SecondaryPasswordAuth

  {
    if (!Config.SECOND_AUTH_ENABLED)
    {
      return;
    }
    SecondaryPasswordAuth spa = getClient().getSecondaryAuth();
    boolean exVal = false;
    if ((_changePass == 0) && !spa.passwordExist())
    {
      exVal = spa.savePassword(_password);
    }
    else if ((_changePass == 2) && spa.passwordExist())
    {
      exVal = spa.changePassword(_password, _newPassword);
    }
    if (exVal)
    {
      getClient().sendPacket(new Ex2ndPasswordAck(Ex2ndPasswordAck.SUCCESS));
    }
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.