From 907a51b44bf5c54efaff0737a706cbc984a8ce79 Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 16 Apr 2021 11:31:11 +0200 Subject: [PATCH] Small fixes with user table --- src/api.ts | 2 +- src/components/InlineEditor.vue | 4 ++-- src/components/LoginForm.vue | 1 + src/views/MainPage.vue | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api.ts b/src/api.ts index f391d6f..d8a33ce 100644 --- a/src/api.ts +++ b/src/api.ts @@ -25,7 +25,7 @@ async function request( init.headers.set("X-CSRFToken", csrfToken); } if (authToken != undefined) { - init.headers.set("Authentication", authToken); + init.headers.set("Authorization", `Token ${authToken}`); } init.headers.set("Accept", "application/json"); init.headers.set("Content-Type", "application/json"); diff --git a/src/components/InlineEditor.vue b/src/components/InlineEditor.vue index a2a5eab..f3d3faa 100644 --- a/src/components/InlineEditor.vue +++ b/src/components/InlineEditor.vue @@ -1,8 +1,8 @@