diff --git a/src/services/api/accounts.js b/src/services/api/accounts.js index 664a690..34dac16 100644 --- a/src/services/api/accounts.js +++ b/src/services/api/accounts.js @@ -5,6 +5,18 @@ export default { return request.get('/api/accounts/current'); }, + changePassword({ + password = '', + newPassword = '', + newRePassword = '', + logoutAll = true + }) { + return request.post( + '/api/accounts/change-password', + {password, newPassword, newRePassword, logoutAll} + ); + }, + acceptRules() { return request.post('/api/accounts/accept-rules'); },