From ebef6eeea82b00e281c14bf1e54b984197b2d399 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 7 Aug 2023 18:25:41 -0700 Subject: Remove phosphor-rest style login As part of [1] There are deprecated login flows that webui-vue seems to have copied from phosphor-rest. These were originally added because phosphor-rest didn't look at response codes, but webui-vue does, so we can use the normal version, which allows us to reduce the code in bmcweb. This needs to go the same time as [1]. Tested: Gunnar tested with 65810 and this works. [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/65810 Change-Id: I1e55f08cf1d7d44b6757ac4173a26546eaca72e5 Signed-off-by: Ed Tanous Signed-off-by: Gunnar Mills --- src/store/modules/Authentication/AuthenticanStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js index a6de8405..0dca1832 100644 --- a/src/store/modules/Authentication/AuthenticanStore.js +++ b/src/store/modules/Authentication/AuthenticanStore.js @@ -41,7 +41,10 @@ const AuthenticationStore = { login({ commit }, { username, password }) { commit('authError', false); return api - .post('/login', { data: [username, password] }) + .post('/login', { + username: username, + password: password, + }) .then(() => commit('authSuccess')) .catch((error) => { commit('authError'); -- cgit v1.2.3