mmarkym
-
Posts
5 -
Joined
-
Last visited
Posts posted by mmarkym
-
-
If I echo $p and password_hash($p, PASSWORD_BCRYPT), I get the $p but nothing with password_hash($p, PASSWORD_BCRYPT). I also added phpinfo() and could not find password_hash only md3 and sha1
mark
-
I'm not sure what you mean by "How many characters does the password_hash function call resolve to" but the pass field in the db is set to VARCHAR (255).
mark
-
if ($rows === 0)
{
include('includes/lib/password.php');
$q = "INSERT INTO users (username, email, pass, first_name, last_name, date_expires) VALUES ('$u', '$e', '" . password_hash($p, PASSWORD_BCRYPT) . "', '$fn', '$ln', SUBDATE(NOW(), INTERVAL 1 DAY) )";
$r = mysqli_query($conn, $q);
if (mysqli_affected_rows($conn) === 1)
{ -
Within the register.php file there's an INSERT statement that inserts a record into the users table of the database. My password is only inserted locally. When I go live and try to register, the pass field in the db is blank. I'm using the library with the password.php in it and have included that above the INSERT statement.
mark
Password Inset Only Works Live
in Effortless E-Commerce with PHP and MySQL (2nd Edition)
Posted
yes it does.
mark