opendarkeden / server

42 stars 32 forks source link

Creating Account #88

Closed Supacek closed 1 year ago

Supacek commented 1 year ago

INSERT INTO Player (PlayerID,Password,Access) VALUE ('username',PASSWORD('password'), 'ALLOW')

1406 - Data too long for column 'Password' at row 1 Time: 0.054s ok so we have problem or i have problem the new hash code is to logn so we need to change table PLAYER

image and set Lenght from 15 to like 50 cuz the new hash is 41 lenght long

then try again create account with query image

succes image

but the problem is after trying log in into game Error image

the problem must be in the new hash any help ? how i can figure it out ??? when i try to use query with INSERT` INTO Player (PlayerID,Password,Access) VALUE ('username',OLD_PASSWORD('password'), 'ALLOW') function dont exist

any idea? how to fix ?

Supacek commented 1 year ago

INTO Player (PlayerID,Password,Access) VALUE ('username',PASSWORD('password'), 'ALLOW')

possible fix use only INTO Player (PlayerID,Password,Access) VALUE ('username', 'password', 'ALLOW') = no hash password

tiancaiamao commented 1 year ago

Yes, I changed code ... to use the raw passward. You can INTO Player (PlayerID,Password,Access) VALUE ('username','your password'), 'ALLOW')

@Supacek

tiancaiamao commented 1 year ago

No PASSWORD or OLD_PASSWORD function

Supacek commented 1 year ago

Fixed ye