Whirlpool, and y_ini issue.
#1

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.
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;
}
The debug message prints
Код:
Pass:
What can I do to get the password to be loaded correctly?
Reply


Messages In This Thread
Whirlpool, and y_ini issue. - by ReneG - 05.05.2012, 00:54
Re: Whirlpool, and y_ini issue. - by RicaNiel - 05.05.2012, 01:18
Re: Whirlpool, and y_ini issue. - by ReneG - 05.05.2012, 02:54
Re: Whirlpool, and y_ini issue. - by ReneG - 05.05.2012, 19:49
Re: Whirlpool, and y_ini issue. - by Face9000 - 05.05.2012, 20:13
Re: Whirlpool, and y_ini issue. - by ReneG - 05.05.2012, 20:32
Re: Whirlpool, and y_ini issue. - by warcodes_ - 05.05.2012, 20:49
Re: Whirlpool, and y_ini issue. - by Face9000 - 05.05.2012, 20:52
Re: Whirlpool, and y_ini issue. - by warcodes_ - 05.05.2012, 21:02
Re: Whirlpool, and y_ini issue. - by ReneG - 05.05.2012, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)