- 0
Script: Problema 'bcrypt'.
-
Similar Content
-
- 0 answers
- 51 views
-
- 0 replies
- 148 views
-
- 1 answer
- 343 views
-
- 6 replies
- 333 views
-
- 4 replies
- 288 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.