Crashing server
#10

Just realized that I can't use concat as I need to rehash the password with the retrieved salt.

EDIT: This is the current code:

pawn Код:
public Mysql_Login(playerid, password[])
{
    new rows, fields;
    cache_get_data(rows, fields, Gconnection);

    if(rows) {
        new HashedPass[429], temp[100], Query[529];
        mysql_real_escape_string(PlayerName(playerid), PlayerName(playerid), Gconnection);
        cache_get_row(0, 37, temp);
        format(HashedPass, 429, "%s%s", temp, password);

        WP_Hash(HashedPass, 429, HashedPass);

        mysql_function_query(Gconnection, Query, true, "OnPlayerRequestLogin", "ds", playerid, HashedPass);
    }
    return 1;
}
it's escaping the string then nothing (crash)
Reply


Messages In This Thread
Crashing server - by thefatshizms - 10.06.2013, 19:09
Re: Crashing server - by thefatshizms - 11.06.2013, 15:17
Re: Crashing server - by SuperViper - 11.06.2013, 15:20
Re: Crashing server - by Vince - 11.06.2013, 15:25
Re: Crashing server - by thefatshizms - 11.06.2013, 15:35
Re: Crashing server - by thefatshizms - 11.06.2013, 16:09
Re: Crashing server - by thefatshizms - 11.06.2013, 16:49
Re: Crashing server - by Vince - 11.06.2013, 17:01
Re: Crashing server - by thefatshizms - 11.06.2013, 17:11
Re: Crashing server - by thefatshizms - 11.06.2013, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)