09.09.2012, 09:57
Hey,
So, my old case was "This thread" where my registration system couldn't save the passwords, but thanks to the people who helped me there, it saves the password and hashes it by Whirlpool. So, my problem now is when a player logs-in "their password is saved" can just type any password or anything to log-in, let's say his password was 123456, he can type asdasd and just log-in :/. Why is it happening and how can I fix it?
This is what I've got in OnPlayerConnect:
If you need anything else to know, please tell me!
So, my old case was "This thread" where my registration system couldn't save the passwords, but thanks to the people who helped me there, it saves the password and hashes it by Whirlpool. So, my problem now is when a player logs-in "their password is saved" can just type any password or anything to log-in, let's say his password was 123456, he can type asdasd and just log-in :/. Why is it happening and how can I fix it?
This is what I've got in OnPlayerConnect:
pawn Код:
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}