We have recently updated our forum software.

If you can't login or you can't register, get support at (require GitHub account).

Users with multiple accounts has been merged: app.php/rules#multi-account

When new forum styles are ready they will be released.

Thank you for visiting http://www.l2jserver.com/

Cant login into server. :(

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Vitaliks2390
Posts: 4
Joined: Sat Feb 13, 2010 6:54 pm

Cant login into server. :(

Postby Vitaliks2390 » Sat Feb 13, 2010 7:14 pm

Hello every body. Sorry for my bad english. But i realy need help. I wish to know, why i cant login in server. I have l2j epilogue. Ok lets begin. After auto create account registration i can logined in game. But when i register from web site, i cant login in. I have mesage like this
The password you have entered is incorrect. Confirm your account information and log in again leter.

If enyone know how to take of this warning, please help (.
Thnx.

User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 10:57 am
Location: Europe
Contact:

Re: Cant login into server. :(

Postby qwerty13 » Sat Feb 13, 2010 8:01 pm

1. I think problem in your web. Check your web registration script.
2. You posted in wrong section.

User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 4:15 pm
Location: Slovakia

Re: Cant login into server. :(

Postby janiii » Sat Feb 13, 2010 8:09 pm

moved to support
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!

Vitaliks2390
Posts: 4
Joined: Sat Feb 13, 2010 6:54 pm

Re: Cant login into server. :(

Postby Vitaliks2390 » Sat Feb 13, 2010 8:44 pm

Noooot. Registration script is correct. Couse all in formation goes to account table, and all correct. why i cant log in the game?

User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 4:15 pm
Location: Slovakia

Re: Cant login into server. :(

Postby janiii » Sat Feb 13, 2010 9:00 pm

probably you are not using the right account table or you use wrong database. check your database settings that you use the right database!
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!

Vitaliks2390
Posts: 4
Joined: Sat Feb 13, 2010 6:54 pm

Re: Cant login into server. :(

Postby Vitaliks2390 » Sat Feb 13, 2010 9:06 pm

Oh maaan. My database is l2jdb. table 'accounts' = where are all f****g sorry accounts.

Code: Select all

  1. <?php
  2.     if (isset($_POST['login'])) { $login = $_POST['login']; if ($login == '') { unset($login);} } //заносим введенный пользователем логин в переменную $login, если он пустой, то уничтожаем переменную
  3.     if (isset($_POST['password'])) { $password=$_POST['password']; if ($password =='') { unset($password);} }
  4.     //заносим введенный пользователем пароль в переменную $password, если он пустой, то уничтожаем переменную
  5. if (empty($login) or empty($password)) //если пользователь не ввел логин или пароль, то выдаем ошибку и останавливаем скрипт
  6.     {
  7.     exit ("You did not enter all the information, please go back and fill in all fields!");
  8.     }
  9.     //если логин и пароль введены,то обрабатываем их, чтобы теги и скрипты не работали, мало ли что люди могут ввести
  10.     $login = stripslashes($login);
  11.     $login = htmlspecialchars($login);
  12. $password = stripslashes($password);
  13.     $password = htmlspecialchars($password);
  14. //удаляем лишние пробелы
  15.     $login = trim($login);
  16.     $password = trim($password);
  17. // подключаемся к базе
  18.     include ("db.php");// файл bd.php должен быть в той же папке, что и все остальные, если это не так, то просто измените путь
  19. // проверка на существование пользователя с таким же логином
  20.     $result = mysql_query("SELECT login FROM accounts WHERE login='$login'",$db);
  21.     $myrow = mysql_fetch_array($result);
  22.     if (!empty($myrow['id'])) {
  23.     exit ("Sorry this login exists. Please chouse an other.");
  24.     }
  25. // если такого нет, то сохраняем данные
  26.     $result2 = mysql_query ("INSERT INTO accounts (login,password) VALUES('$login','". md5($password)."')");
  27.     // Проверяем, есть ли ошибки
  28.     if ($result2=='TRUE')
  29.     {
  30.     echo "You are succesfully registred. Now you can go to our <a href='http://xxx.xxx.xxx/index.php'>Website</a>";
  31.     }
  32. else {
  33.     echo "You did not registred! Go back and try one mor time.";
  34.     }
  35. ?>

How it possibol my script is incorrect?

User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 4:15 pm
Location: Slovakia

Re: Cant login into server. :(

Postby janiii » Sat Feb 13, 2010 9:07 pm

check what database uses your server. if it is the same as your php script.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!

Vitaliks2390
Posts: 4
Joined: Sat Feb 13, 2010 6:54 pm

Re: Cant login into server. :(

Postby Vitaliks2390 » Sat Feb 13, 2010 9:16 pm

My databse is l2jdb. I am not so stupid than dont know my data base.
How match i can explane you than i have all ok
Re: Cant login into server. :(

Post by Vitaliks2390 on Sat Feb 13, 2010 9:44 pm
Noooot. Registration script is correct. Couse all in formation goes to account table, and all correct. why i cant log in the game?

Mabe in server are some stufs who prohibits me log in?

User avatar
jurchiks
Posts: 6725
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: Cant login into server. :(

Postby jurchiks » Sat Feb 13, 2010 11:28 pm

what about
include ("db.php");
??
although if you manually checked the new database record...
is it really md5 hash?
hmm, when does the server encode that password?
or it should be in the php script?
i mean the
base64_encode(pack('H*', sha1($pwd)))
Last edited by jurchiks on Sat Feb 13, 2010 11:40 pm, edited 1 time in total.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.

_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 9:53 am
Location: Russia

Re: Cant login into server. :(

Postby _DS_ » Sat Feb 13, 2010 11:35 pm

Vitaliks2390 wrote: $result2 = mysql_query ("INSERT INTO accounts (login,password) VALUES('$login','". md5($password)."')");

Its wrong.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;

User avatar
jurchiks
Posts: 6725
Joined: Sat Sep 19, 2009 5:16 pm
Location: Eastern Europe

Re: Cant login into server. :(

Postby jurchiks » Sat Feb 13, 2010 11:46 pm

Code: Select all

  1.            mysql_query("INSERT INTO accounts (login, password, access_level) VALUES ('".$_POST['account']."', '".base64_encode(pack('H*', sha1($_POST['password'])))."', 0)", $link);
  2.            mysql_close($link);
  3.           print '<p class="error"><font color="#FFCC00"><b>Account created 100%</font></b></p>';

found this
you could also add the userIP column, in case people want to bind their account
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.

broukes
Posts: 49
Joined: Fri Dec 31, 2010 4:01 am

Re: Cant login into server. :(!!!!!

Postby broukes » Fri Dec 31, 2010 5:24 pm

Hi everybody i've been working on trying to open a l2j server for the past 2 days and i am literally about to go crazy... Step after step i've been passing through these stages of bugs and it's driving me nuts, But i feel like i'm close to the end of my troubles.. I just cant login in my server.. L2.exe runs fine, but when i try to log in i get incorrect account or password. (system clean) (i dont know how to edit the host file) please help!!!

hope
Posts: 1160
Joined: Thu Aug 30, 2007 6:17 pm

Re: Cant login into server. :(!!!!!

Postby hope » Fri Dec 31, 2010 7:11 pm

broukes wrote:Hi everybody i've been working on trying to open a l2j server for the past 2 days and i am literally about to go crazy... Step after step i've been passing through these stages of bugs and it's driving me nuts, But i feel like i'm close to the end of my troubles.. I just cant login in my server.. L2.exe runs fine, but when i try to log in i get incorrect account or password. (system clean) (i dont know how to edit the host file) please help!!!

Dont use the l2.exe use the updater first updating all files

Arien
Posts: 4
Joined: Tue Mar 27, 2012 7:57 pm

Re: Cant login into server. :(

Postby Arien » Tue Jun 05, 2012 1:13 am

Reinstall client! antivirus?

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 5662
Joined: Tue Aug 11, 2009 4:36 am

Re: Cant login into server. :(

Postby Zoey76 » Tue Jun 05, 2012 1:40 am

Arien wrote:Reinstall client! antivirus?


Dec 2010, locked.
Be social: Image Image Image
Using Eclipse Standard Luna 4.4.1 - JDK8u25 - L2J Server BETA.
Live support &


Return to “High Five Server Support”

Who is online

Users browsing this forum: Google [Bot] and 3 guests