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...