From 01d747e59030fde1d99bbcceac98a4bddf415bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20=C3=85hsberg?= Date: Thu, 14 May 2020 17:11:51 +0000 Subject: [PATCH] Transform username/password login response to json (#211) --- frontend/src/data/user-api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/data/user-api.js b/frontend/src/data/user-api.js index 4463f166ac..e3257d75d8 100644 --- a/frontend/src/data/user-api.js +++ b/frontend/src/data/user-api.js @@ -26,7 +26,9 @@ function passwordLogin(path, data) { credentials: 'include', headers, body: JSON.stringify(data), - }).then(throwIfNotSuccess); + }) + .then(throwIfNotSuccess) + .then(response => response.json()); } export default {