diff options
-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'); |