Y_INI Invalid Password
#6

Quote:
Originally Posted by X|Dragon|X
Посмотреть сообщение
pawn Код:
{
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
                {
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COLOR_WHITE"Success!",""COLOR_GREEN"You have successfully logged in!","Ok","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_RED"You have entered an incorrect password.\n"COLOR_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
And the file is created and filled and the password section is filled with the hashed password, but when i type in my password it says invalid
pawn Код:
public LoadUser_data(playerid, tag[], name[], value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPassword]);
    INI_Int("Money",PlayerInfo[playerid][pMoney]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Gender",PlayerInfo[playerid][pGender]);
    INI_Int("Age",PlayerInfo[playerid][pAge]);
    return 1;
}
I can't use another user system now, i've went through alot in my script
You have to load the data before checking the password and not after...

And also, as ***** said
Change the encryption to Whirlpool
Reply


Messages In This Thread
Y_INI Invalid Password - by X|Dragon|X - 13.01.2015, 18:37
Re: Y_INI Invalid Password - by Ahmad45123 - 13.01.2015, 18:39
Re: Y_INI Invalid Password - by Sawalha - 13.01.2015, 18:44
Re: Y_INI Invalid Password - by nogh445 - 13.01.2015, 18:44
Re: Y_INI Invalid Password - by X|Dragon|X - 13.01.2015, 18:56
Re: Y_INI Invalid Password - by Ahmad45123 - 13.01.2015, 19:14
Re: Y_INI Invalid Password - by X|Dragon|X - 13.01.2015, 19:14
Re: Y_INI Invalid Password - by X|Dragon|X - 13.01.2015, 19:17
Re: Y_INI Invalid Password - by X|Dragon|X - 13.01.2015, 19:19
Re: Y_INI Invalid Password - by Threshold - 14.01.2015, 01:23
Re: Y_INI Invalid Password - by Camacorn - 16.01.2015, 04:37

Forum Jump:


Users browsing this thread: 1 Guest(s)