05.05.2012, 00:54
So I am hashing passwords using Whirlpool, and I am having trouble with the user login. I've debugged it up to where the problem was. INI_ParseFile wasn't parsing the hashed password properly.
The debug message prints
What can I do to get the password to be loaded correctly?
pawn Код:
public OnPlayerConnectEx(playerid)
{
SetJoinCamera(playerid);
resetVars(playerid);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
printf("[debug] Pass: %s", PlayerInfo[playerid][pPass]); // this thing
ShowPlayerLoginMenu(playerid, MENU_LOGIN);
}
else
{
ShowPlayerLoginMenu(playerid, MENU_REGISTER);
}
return 1;
}
Код:
Pass: