Fix admin password change form: forgot to change password->credentials here

This commit is contained in:
Alexandre Aubin 2021-11-15 18:33:01 +01:00
parent 3de72bd99b
commit bc6a08308e

View file

@ -44,7 +44,7 @@ export default {
this.serverError = ''
api.fetchAll(
[['POST', 'login', { password: currentPassword }, null, { websocket: false }],
[['POST', 'login', { credentials: currentPassword }, null, { websocket: false }],
['PUT', 'adminpw', { new_password: password }, 'adminpw']],
{ wait: true }
).then(() => {