Fixed typo with variable name.

This commit is contained in:
maliayas
2012-12-16 06:32:52 +02:00
parent 49b3a25106
commit f03a14bcb5

View File

@@ -18,9 +18,9 @@ Below we hash a string, we then check the hash against a new string. Because our
<?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
} else {
//Wrong password