mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 12:44:07 +01:00
Remove password functionality
After the change to 0.0.0.0 there will be no need for a password
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<?php
|
||||
if(!isset($_GET['domain'], $_GET['list'], $_GET['pass']))
|
||||
if(!isset($_GET['domain'], $_GET['list']))
|
||||
die();
|
||||
|
||||
include "functions.php";
|
||||
|
||||
if(!checkPass($_GET['pass']))
|
||||
die("Wrong Password");
|
||||
|
||||
switch($_GET['list']) {
|
||||
case "white":
|
||||
exec("/usr/local/bin/whitelist.sh -q ${_GET['domain']}");
|
||||
@@ -14,4 +9,4 @@ switch($_GET['list']) {
|
||||
case "black":
|
||||
exec("/usr/local/bin/blacklist.sh -q ${_GET['domain']}");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user