Whirlpool issue.
#1

We have a login system, however, if we compare our real password, to the inputted password, it removes the first character of the real password, thus, making the inputted password seem incorrect.

PHP код:
case DIALOG_LOGIN:
        {
            if ( !
response ) return Kick playerid );
            if( 
response )
            {
                new 
hpass[129];
                
WP_Hash(hpasssizeof(hpass), inputtext);
                if(!
strmatch(pVariables[playerid][pPassword], hpass))
                {
                    
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                else
                {
                    
mysql_format(mysqlquerysizeof(query), "SELECT * FROM `users` WHERE `Username` = '%s' LIMIT 1"name1);
                    
mysql_tquery(mysqlquery"OnAccountLoad""i"playerid);
                }
                new 
string[256], string1[256];
                
format(stringsizeof(string), "Real pass: %s"pVariables[playerid][pPassword]);
                
SendClientMessageToAll(-1string);
                
format(string1sizeof(string1), "Input Pass: %s"hpass);
                
SendClientMessageToAll(-1string1);
                return 
1;
            } 



Heres a screenshot:

Reply


Messages In This Thread
Whirlpool issue. - by guitardude01 - 30.05.2014, 21:03
Re: Whirlpool issue. - by Eth - 30.05.2014, 21:06
Re: Whirlpool issue. - by guitardude01 - 30.05.2014, 21:20
Re: Whirlpool issue. - by guitardude01 - 31.05.2014, 00:27
Re: Whirlpool issue. - by Copfan5 - 31.05.2014, 14:54
Re: Whirlpool issue. - by guitardude01 - 01.06.2014, 12:07
Re: Whirlpool issue. - by guitardude01 - 01.06.2014, 12:12
Re: Whirlpool issue. - by rickisme - 01.06.2014, 12:13
Re: Whirlpool issue. - by Tagathron - 01.06.2014, 12:14
Re: Whirlpool issue. - by biker122 - 01.06.2014, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)