I am not sure what I should have as title so, I am using "Modern acc - invalid password - Tutorial" for now, please if you have better title, post it!
Okey back to the topic.
I have seen hundreds of question about "invalid password" and "why is the pass like this: 7110eda4d09e062aa5e4a390b0a572ac0d2c0220, when I typed: 1234 as password"
The answear is easy, this is called encryption.
Your password has been encrypt to a hash code, which is told that it's impossible to decrypt.
Now how to fix that you can loggin to your account with the tibia client!
Open up your config.lua
Scroll down untill you comes to the database part:
You see the marked line in red?
Change that to
so now it should look like this:
------ EDIT! -Credits to Kavvson
If you have plain password (a password you can read like "my pass is 210", then you can use this sql query:
Just change id = 1, to the account id you want to hash the password at!
--------------
Restart your server and have fun when you are able to login!
Feedback please (so I can create better tutorials!) - If you think this is a bad tutorial please, tell me HOW I can make it better.
Okey back to the topic.
I have seen hundreds of question about "invalid password" and "why is the pass like this: 7110eda4d09e062aa5e4a390b0a572ac0d2c0220, when I typed: 1234 as password"
The answear is easy, this is called encryption.
Your password has been encrypt to a hash code, which is told that it's impossible to decrypt.
Now how to fix that you can loggin to your account with the tibia client!
Open up your config.lua
Scroll down untill you comes to the database part:
Code:
sqlType = "xxxx"
sqlHost = "xxxx"
sqlPort = xxxx
sqlUser = "xxxx"
sqlPass = "xxx"
sqlDatabase = "xxxx"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
[COLOR="Red"][U][B]encryptionType = "plain"[/B][/U][/COLOR]
You see the marked line in red?
Code:
encryptionType = "plain"
Code:
encryptionType = "sha1"
Code:
sqlType = "xxxx"
sqlHost = "xxxx"
sqlPort = xxxx
sqlUser = "xxxx"
sqlPass = "xxx"
sqlDatabase = "xxxx"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
[COLOR="Red"][U][B]encryptionType = "sha1"[/B][/U][/COLOR]
If you have plain password (a password you can read like "my pass is 210", then you can use this sql query:
Code:
UPDATE accounts SET password=SHA1(password) WHERE id = 1;
--------------
Restart your server and have fun when you are able to login!
Feedback please (so I can create better tutorials!) - If you think this is a bad tutorial please, tell me HOW I can make it better.
Last edited: