Checks password file to check inputted password

This commit is contained in:
Mcat12
2016-02-28 15:36:16 -05:00
parent 5d1761b19d
commit a7f352674e
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
function checkPass($pass) {
// Check password
return true;
return $pass == str_replace(array("\r", "\n"), '', file_get_contents("/etc/pihole/password.txt"));
}