mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-17 19:16:20 +02:00
Merge pull request #226 from maliayas/patch-1
Fixed typo with variable name.
This commit is contained in:
@@ -18,9 +18,9 @@ Below we hash a string, we then check the hash against a new string. Because our
|
|||||||
<?php
|
<?php
|
||||||
require 'password.php';
|
require 'password.php';
|
||||||
|
|
||||||
$passwordhash = password_hash('secret-password', PASSWORD_DEFAULT);
|
$passwordHash = password_hash('secret-password', PASSWORD_DEFAULT);
|
||||||
|
|
||||||
if (password_verify('bad-password', $password-hash)) {
|
if (password_verify('bad-password', $passwordHash)) {
|
||||||
//Correct Password
|
//Correct Password
|
||||||
} else {
|
} else {
|
||||||
//Wrong password
|
//Wrong password
|
||||||
|
Reference in New Issue
Block a user