+ 1
Trying to use password_verify
https://code.sololearn.com/wm8GVOXC94ra/?ref=app I'm trying to use password_verify, because on my registration page I use password_hash ($ password, PASSWORD_DEFAULT), but when trying to use password_verify it gives error, both when receiving the database password and identifying, I need to receive the password that the user I typed in the input and compared it to the one in the database, but I can not :( Somebody help me please
7 Réponses
+ 1
the problem is your SQL statement
your are trying to select a user, in the database the password is hashed but the input password of the user not,
password = 1234
password in database = dhskososnxj
your SQL statement cannot have results because the password will never match a user
+ 1
check the line before may be you forgot to close a "( { or ;"
0
Please help me :(
0
Bro I get this error
Parse error: syntax error, unexpected '$senha' (T_VARIABLE) in /storage/ssd4/809/8183809/public_html/login-user.php on line 18
Line 18
$senha = $_POST['senha'];
0
Ok I go check
0
on line 24 there was one; but even after putting still the same error :(