mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Checks password file to check inputted password
This commit is contained in:
+1
-1
@@ -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"));
|
||||
}
|
||||
Reference in New Issue
Block a user