mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
account deactivation process
This commit is contained in:
parent
6a9ad7f540
commit
0a64afd6b5
5 changed files with 66 additions and 2 deletions
|
@ -234,5 +234,15 @@ export default Service.extend({
|
|||
|
||||
xhr.send(data);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
deactivate() {
|
||||
if(this.get('sessionService.isAdmin')) {
|
||||
return this.get('ajax').request(`deactivate`, {
|
||||
method: 'POST',
|
||||
}).then(() => {
|
||||
return;
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue