Weird MySQL issue
#4

Quote:
Originally Posted by Y_Less
View Post
How are you calling BCrypt? It probably isn't passing the playerid to the callback.
pawn Code:
Dialog:DIALOG_LOGIN(playerid, response, listitem, inputtext[])
{
    if(response)
    {
        new query[500], Password[BCRYPT_HASH_LENGTH];
        mysql_format(Database, query, sizeof(query), "SELECT `Password` FROM `players` WHERE `Username` = '%e'", GetName(playerid));
        mysql_query(Database, query);
        cache_get_value_name(0, "Password", Password, BCRYPT_HASH_LENGTH);
        bcrypt_check(inputtext, Password, "OnPasswordChecked", "i", playerid);
    }
    else
        return Kick(playerid);
    return 1;
}
Here.
Reply


Messages In This Thread
Weird MySQL issue - by solstice_ - 06.01.2019, 22:22
Re: Weird MySQL issue - by ch1ps - 07.01.2019, 08:17
Re: Weird MySQL issue - by solstice_ - 07.01.2019, 10:06
Re: Weird MySQL issue - by solstice_ - 07.01.2019, 10:38
Re: Weird MySQL issue - by Calisthenics - 07.01.2019, 10:57
Re: Weird MySQL issue - by ch1ps - 07.01.2019, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)