[Ajuda] Hash MyBB
#1

Estou tentando usar o hash do MyBB no PAWN para tentar criar um sistema de login, mas acontece o seguinte. Nгo sei se o problema deva ser diferenciaзгo por conta de caracteres em letras maiъsculas ou sei lб o que. Mas eu fiz um debug de como estou utilizando a funзгo:

pawn Код:
debug com tolower: C17B0956505182F5308108A602077A1D
debug com toupper: E1B1BC3B6D56D56531FF2E47106F6A9E
Deixarei o cуdigo de como estб a funзгo, para que se alguйm puder ajudar ficarei agradecido:

PHP код:
Dialog:DialogLogin(playeridresponselistiteminputtext[])
{
    if(
response)
    {
        if(
strcmp(MyBB_Hash(inputtextAPlayerData[playerid][Salt]), APlayerData[playerid][Password]) == 0)
        {
            
cache_set_active(APlayerData[playerid][Player_Cache]);
            
cache_get_value_int(0"uid"APlayerData[playerid][ID]);
            
cache_delete(APlayerData[playerid][Player_Cache]);
            
APlayerData[playerid][Player_Cache] = MYSQL_INVALID_CACHE;
            
APlayerData[playerid][LoggedIn] = true;
            
SendClientMessage(playeridCOLOR_GREEN"Logado com sucesso.");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Senha incorreta.");
            
Dialog_Show(playeridDialogLoginDIALOG_STYLE_PASSWORD"Logando""Teste""Registrar""Sair");
        }
    }
    return 
1;

Reply


Messages In This Thread
Hash MyBB - by pWesley - 08.02.2017, 18:05
Respuesta: Hash MyBB - by SammyJ - 08.02.2017, 18:09
Re: Hash MyBB - by pWesley - 08.02.2017, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)