- 0
Script: Problema 'bcrypt'.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
DonErik
Salut,
problema mea este cu hash-ul in baza de date. 'PasswordVerify => InvalidHash("")'.
function HashPassword(playerid) { if(!IsPlayerConnected(playerid)) return 0; bcrypt_get_hash(PlayerInfo[playerid][pPassword]); mysql_format(SQL, gString, sizeof gString, "insert into users (Username, Password, registerDate) values ('%e', '%e', '%d')", GetName(playerid), PlayerInfo[playerid][pPassword], gettime()); mysql_pquery(SQL, gString, "OnPlayerRegister", "d", playerid); return 1; } function PasswordVerify(playerid, bool: succes) { if(!IsPlayerConnected(playerid)) return 0; if(!succes) { if(++LoginTries[playerid] >= 3) { SendErrorMsg(playerid, "You have entered the wrong password way too many times!"); defer KickEx(playerid); return 1; } return ShowPlayerLogin(playerid); } mysql_format(SQL, gString, sizeof gString, "select * from users where id = %d", PlayerInfo[playerid][pSQLID]); mysql_pquery(SQL, gString, "OnPlayerLogin", "d", playerid); return 1; }Nu am folosit acest include pana acum, si m-am gandit ca este o alternativa mai bune fata de WP, si MD5.
Multumesc pentru timpul acordar!
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now