Skip to content
Snippets Groups Projects
Commit 91c7db94 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fix zammad authorization syntax

parent da9a9d71
No related branches found
No related tags found
No related merge requests found
Pipeline #8341 passed
......@@ -31,7 +31,7 @@ class Zammad {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Token ${config.get("app.zammad.api_key")}`
"Authorization": `Token token=${config.get("app.zammad.api_key")}`
},
body: JSON.stringify(zammad_data)
}).then(response => {
......@@ -80,7 +80,7 @@ class Zammad {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Token ${config.get("app.zammad.api_key")}`
"Authorization": `Token token=${config.get("app.zammad.api_key")}`
},
body: JSON.stringify(zammad_data)
}).then(response => {
......@@ -135,7 +135,7 @@ class Zammad {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Token ${config.get("app.zammad.api_key")}`
"Authorization": `Token token=${config.get("app.zammad.api_key")}`
},
body: JSON.stringify(zammad_data)
}).then(response => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment