#219: fix broken change password page

This commit is contained in:
SleepWalker 2016-10-09 21:50:34 +03:00
parent 3d98747c42
commit 8f51ef3273

View File

@ -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');
},