12.06.2016, 16:08
(
Последний раз редактировалось Sc0pion; 17.08.2017 в 11:27.
)
Fixed!
SELECT * FROM `accounts` WHERE `UserName`='Kusums' AND `Password` = 'asdasd' //code to get all informations from this column
if(!strcmp(inputtext,password)
{
//if the password matchs
}
else
{
kick(playerid);
}
It doesn't matter if it is hashed or no, I just want to know how to code where it will check input hashed password is equal to retrieved password from MySQL. Anyways when registering, the password is hashed before it gets stored to database, so I have to hash the inputtext to see if retrieved password is equal to inputtext.
Lets just say if MySQL_Password = HashedInputtext, access, else kick? By the way I use WP_Hash. |