mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
We should not use JSON.stringify() but leave escaping to AJAX itself
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -318,7 +318,8 @@ function setTOTPSecret(secret) {
|
||||
$.ajax({
|
||||
url: "/api/config",
|
||||
type: "PATCH",
|
||||
data: JSON.stringify({ config: { webserver: { api: { totp_secret: secret } } } }),
|
||||
dataType: "json",
|
||||
data: { config: { webserver: { api: { totp_secret: secret } } } },
|
||||
contentType: "application/json",
|
||||
})
|
||||
.done(function () {
|
||||
|
||||
Reference in New Issue
Block a user