mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-30 23:39:48 +05:30
#219: fix broken change password page
This commit is contained in:
parent
3d98747c42
commit
8f51ef3273
@ -5,6 +5,18 @@ export default {
|
|||||||
return request.get('/api/accounts/current');
|
return request.get('/api/accounts/current');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
changePassword({
|
||||||
|
password = '',
|
||||||
|
newPassword = '',
|
||||||
|
newRePassword = '',
|
||||||
|
logoutAll = true
|
||||||
|
}) {
|
||||||
|
return request.post(
|
||||||
|
'/api/accounts/change-password',
|
||||||
|
{password, newPassword, newRePassword, logoutAll}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
acceptRules() {
|
acceptRules() {
|
||||||
return request.post('/api/accounts/accept-rules');
|
return request.post('/api/accounts/accept-rules');
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user