Most visitors online was 8830 , on 6 Feb 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!$sth->bindValue(":password", sha1($pass));
if (sha1($pass) != $row[1] && empty($msg)) {
hmm...I totally forgot about salts, idk what those are but I remember they are needed to login..I'll have to look into that o;
$oraios = $oraiosCore->getClass()->prepareStatement("SELECT accounts.name,accounts.password, accounts.id, accounts.gm, accounts.salt FROM accounts WHERE accounts.name = :name");
if (sha1($pass) != $row[1] && hash("sha512", $pass.$row[4]) != $row[1] && empty($msg)) {
File: top.php
I edited line 17:
PHP:$oraios = $oraiosCore->getClass()->prepareStatement("SELECT accounts.name,accounts.password, accounts.id, accounts.gm, accounts.salt FROM accounts WHERE accounts.name = :name");
so it gets the salt.
Then, I edited line 25:
PHP:if (sha1($pass) != $row[1] && hash("sha512", $pass.$row[4]) != $row[1] && empty($msg)) {
Basically, the way the salt is used is password+salt (to create one string), then that big string is hashed
SPLEDID! IT FIXED EVERYTHING THANK YOU. BTW its line 24 not Line 25
Except.. I need help with the register.. Can you please teach me how to add salt to register?
You are suppose to have admin access which tells you how to get in the main post, go to admin panel and click the setup profile name, and a popup should appear to type your profile name and click next, wait a bit and done! If that doesn't occur I'll look into it and fix that ASAPNo problem
Whatever, at least you got the line
On a side note, I can't get the Profile Name thing to work.
Can I manually add the profile name? o-o
You are suppose to have admin access which tells you how to get in the main post, go to admin panel and click the setup profile name, and a popup should appear to type your profile name and click next, wait a bit and done! If that doesn't occur I'll look into it and fix that ASAP
{"ACCID":"PROFILENAME"}