SA-MP Forums Archive
[HELP]Bug hash password script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Bug hash password script (/showthread.php?tid=351870)



[HELP]Bug hash password script - TheBluec0de - 17.06.2012

dosent login... i hashed the password

edit


Re: [HELP]Bug hash password script - milanosie - 17.06.2012

Indent the script first please, so it is actually readable


Re: [HELP]Bug hash password script - TheBluec0de - 17.06.2012

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Indent the script first please, so it is actually readable
done, look


Re: [HELP]Bug hash password script - Vince - 17.06.2012

Your code makes no sense whatsoever. You're in fact just comparing hashed inputtext with plain inputtext, which obviously isn't going to work out.

You should hash the input password first, then send the query with the hashed password. Then you store the result and see if there are any rows returned. If there is a row, then the passwords matched and you can proceed to login. If there's no row, the passwords didn't match (obviously).