mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-10 01:52:04 +05:30
20 lines
423 B
JavaScript
20 lines
423 B
JavaScript
import request from 'services/request';
|
|
|
|
export default {
|
|
current() {
|
|
return request.get('/api/accounts/current');
|
|
},
|
|
|
|
changePassword({
|
|
password = '',
|
|
newPassword = '',
|
|
newRePassword = '',
|
|
logoutAll = true
|
|
}) {
|
|
return request.post(
|
|
'/api/accounts/change-password',
|
|
{password, newPassword, newRePassword, logoutAll}
|
|
);
|
|
}
|
|
};
|