summaryrefslogtreecommitdiffstats
path: root/version-test.php
diff options
context:
space:
mode:
Diffstat (limited to 'version-test.php')
-rw-r--r--version-test.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/version-test.php b/version-test.php
index f527e30..96f60ca 100644
--- a/version-test.php
+++ b/version-test.php
@@ -1,8 +1,6 @@
<?php
-$hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
-$test = crypt("password", $hash);
-$pass = $test == $hash;
+require "lib/password.php";
-echo "Test for functionality of compat library: " . ($pass ? "Pass" : "Fail");
+echo "Test for functionality of compat library: " . (PasswordCompat\binary\check() ? "Pass" : "Fail");
echo "\n"; \ No newline at end of file