diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-11-09 23:37:22 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-11-09 23:37:22 +0100 |
commit | 8369416cdfd2782860032bc524b5c58c0f1c06a7 (patch) | |
tree | fc6fe85961d594564b55b8faeeae52494d21bedd /scripts/lua/npclib.lua | |
parent | 2a56e837b5d0c7ac2611e1941dd1447f704145ed (diff) | |
download | manaserv-8369416cdfd2782860032bc524b5c58c0f1c06a7.tar.gz manaserv-8369416cdfd2782860032bc524b5c58c0f1c06a7.tar.bz2 manaserv-8369416cdfd2782860032bc524b5c58c0f1c06a7.tar.xz manaserv-8369416cdfd2782860032bc524b5c58c0f1c06a7.zip |
Fixed unregistering on the server-side.
When registering or logging, The client is hashing the password
for sending it safely. And the server is hashing it also
to store it the same way. Hence, the password ends hashed twice,
which is correct because the server can't trust the client anyway.
At unregister attempt, the server wasn't hashing the password
before comparing it.
Also while on it, I made the corresponding SQL query use the try catch
method and only delete the account in memory when it's also done
on the Db.
Reviewed-by: thorbjorn, Freeyorp.
Diffstat (limited to 'scripts/lua/npclib.lua')
0 files changed, 0 insertions, 0 deletions