Revert "Fix AJAX JSON data (#2742)"

This reverts commit 340d373711, reversing
changes made to 1ed1efdc91.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-10-13 09:41:10 +02:00
parent 2fbef7f40e
commit 1146248964
9 changed files with 21 additions and 25 deletions

View File

@@ -318,8 +318,7 @@ function setTOTPSecret(secret) {
$.ajax({
url: "/api/config",
type: "PATCH",
dataType: "json",
data: { config: { webserver: { api: { totp_secret: secret } } } },
data: JSON.stringify({ config: { webserver: { api: { totp_secret: secret } } } }),
contentType: "application/json",
})
.done(function () {