New auth mecanism require to pass credentials as arg instead of password

This commit is contained in:
Alexandre Aubin 2021-08-27 18:45:07 +02:00
parent 6e70c7f57a
commit 63524be319

View file

@ -108,7 +108,7 @@ export default {
},
'LOGIN' ({ dispatch }, password) {
return api.post('login', { password }, null, { websocket: false }).then(() => {
return api.post('login', { credentials: password }, null, { websocket: false }).then(() => {
dispatch('CONNECT')
})
},