24.08.2011, 13:50
Hey guys,
Im using WP as my password encrypter, and im having problems with logging in.
Im comparing the variable which holds the password with the hashed inputtext. Ive done it like this before and that worked. But now it stopped working. What ever i type (even the right password), it says wrong password.
What can the problem be?
Note: PlayerInfo[playerid][pPass] does contain the password!
~Wesley
Im using WP as my password encrypter, and im having problems with logging in.
Im comparing the variable which holds the password with the hashed inputtext. Ive done it like this before and that worked. But now it stopped working. What ever i type (even the right password), it says wrong password.
What can the problem be?
pawn Код:
new buffer[130];
WP_Hash(buffer, sizeof buffer, inputtext);
if(!strcmp(PlayerInfo[playerid][pPass], buffer, true)) // the true has nothing to do with the problem. its just for the "ignore case (A.K.A capslock)"
{
}
~Wesley