Jump to content
  • 0

Login Account


StinkyMadness

Question

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

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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))
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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

Edited by Monkey D. Luffy
Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...