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 {