Jump to content

Question

Posted

How can i do the players not allowed to use same username and password for account?

I mean Username: test
            Password: test

 

            Username: 12345

             Password: 12345

8 answers to this question

Recommended Posts

  • 0
Posted

Open gameserver/head-src/com/l2jfrozen/loginserver/LoginController.java and check for this line:

 

if ((user != null) && (user.length()) >= 2 && (user.length() <= 14))

Then replace it with this:

 

 

 

if ((user != null) && (user.length()) >= 2 && (user.length() <= 14) && !user.equals(password))
  • 0
Posted (edited)

Something like this:

if (user.equals(password))
{
    return false;
}

You should check the method (I don't remember its name) in LoginController.java, to find the best way! ^^

Edited by Tessa
  • 0
Posted

why you need to do that?If any player need to create a bot He can use random characters in keyboard...Simple go to Navicat and delete accounts...

 

"random characters" = Username: jadfhkfj / Password: ahgasdfuig

                             NOT Username: asdfga / Password: asdfga

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..