Whirpool error
#1

I receive this error when a player register:

Код:
[03:33:20] [join] Luca_Macchiavello has joined the server (0:127.0.0.1)
[03:33:32] WP Error: Insufficient buffer size (must be at least 129)
[03:33:43] [part] Luca_Macchiavello has left the server (0:1)
And the user ini file looks like this:

Код:
[PlayerData]
Password = 
Money = 0
AdminLevel = 0
Level = 0
Skin = 0
Kills = 0
Deaths = 0
No password >.<
Reply
#2

The variable (in your script) where you're storing the hash has a size less than that of the required, 129 characters.
Reply
#3

Quote:
Originally Posted by Neil.
Посмотреть сообщение
The variable (in your script) where you're storing the hash has a size less than that of the required, 129 characters.
Ok, solved. Now the problem is when enter any password tells me is correct, but this is not the password that i register :S


Example:

Код:
Register password: 1234
Login password: 6666

Conclusion: Correct Password any password :S
wtf ?

(sorry English, im use translator )
Reply
#4

Quote:

WP Error: Insufficient buffer size (must be at least 129)

It was pretty obvious in my opinion.

Anyway, are you using strcmp to compare the hash from the database and the hash of the entered password ?
We can't provide further help if you without the code where you compare the two passwords.
Reply
#5

Login:

pawn Код:
if(dialogid == dlogin)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            new hashpass[129];
            WP_Hash(hashpass, sizeof(hashpass), inputtext);
            if(!strcmp(hashpass, Info[playerid][pPass], false))
            {
                INI_ParseFile(Path(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                SetPlayerScore(playerid, Info[playerid][pLevel]);
                GivePlayerMoney(playerid, Info[playerid][pDinero]);

                new name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                format(sMensaje, sizeof(sMensaje), "Has entrado con la cuenta %s.", name);
                SendClientMessage(playerid, -1, sMensaje);
            }
            else
            {
                ShowPlayerDialog(playerid, dlogin, DIALOG_STYLE_INPUT, "Login", "Bienvenido a Napsix Roleplay.\nЙsta cuenta ya estб registrada.\nIngresa tu contraseсa para entrar.\nContraseсa incorrecta !", "Aceptar", "Salir");
                return 1;
            }
        }
    }
I followed this tutorial: https://sampforum.blast.hk/showthread.php?tid=352703


P.S.: Ignore language
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)