diff options
author | Ed Tanous <edtanous@google.com> | 2023-08-08 04:25:41 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2023-08-23 21:53:02 +0300 |
commit | ebef6eeea82b00e281c14bf1e54b984197b2d399 (patch) | |
tree | 26263679a89394920f1dd5a29fa519b2fc7920dd | |
parent | 7c1cfe7e25957fc915fc9790bdf78887295b1fee (diff) | |
download | webui-vue-ebef6eeea82b00e281c14bf1e54b984197b2d399.tar.xz |
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 <edtanous@google.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | src/store/modules/Authentication/AuthenticanStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
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'); |