Skip to content
Snippets Groups Projects
Commit 7bf94ad1 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

Can now create users and change their password

parent 2c8a545b
Branches
No related tags found
No related merge requests found
......@@ -3,14 +3,15 @@ import ApplicationAdapter from './application';
export default class UserAdapter extends ApplicationAdapter {
_defaultContentType = 'application/json';
changePassword(model, new_password) {
const url = this.buildURL('user', model.id) + 'change-password/';
return this.ajax(url, 'POST', {
data: {
'password': new_password
},
headers: {
'Content-Type': 'application/json'
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment