mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-10 06:36:07 +00:00
feat: MD5 passwords exchanged for bcrypt ones
This commit is contained in:
@@ -79,7 +79,7 @@ $database->populateOasis();
|
||||
$database->populateOasisUnits2();
|
||||
$uid=$database->getVillageID(5);
|
||||
|
||||
$passw=md5('123456');
|
||||
$passw=password_hash("12345", PASSWORD_BCRYPT,['cost' => 12]);
|
||||
mysqli_query($GLOBALS["link"], "TRUNCATE TABLE ".TB_PREFIX."users");
|
||||
mysqli_query($GLOBALS["link"], "INSERT INTO ".TB_PREFIX."users (id, username, password, email, tribe, access, gold, gender, birthday, location, desc1, desc2, plus, b1, b2, b3, b4, sit1, sit2, alliance, sessid, act, timestamp, ap, apall, dp, dpall, protect, quest, gpack, cp, lastupdate, RR, Rc, ok) VALUES
|
||||
(5, 'Multihunter', '".$passw."', 'multihunter@travianx.mail', 0, 9, 0, 0, '0000-00-00', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 'gpack/travian_default/', 1, 0, 0, 0, 0),
|
||||
|
||||
Reference in New Issue
Block a user