mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Send token when adding new group. Otherwise, we get a "Not allowed" response.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -126,7 +126,7 @@ function addGroup() {
|
||||
url: "scripts/pi-hole/php/groups.php",
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
data: { action: "add_group", name: name, desc: desc },
|
||||
data: { action: "add_group", name: name, desc: desc, token: token },
|
||||
success: function(response) {
|
||||
if (response.success) {
|
||||
showAlert("success");
|
||||
|
||||
Reference in New Issue
Block a user