vikunja-frontend/src/services/accountDelete.js
konrad dc04c1b256 User account deletion (#651)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/651
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-08-11 19:08:18 +00:00

15 lines
No EOL
384 B
JavaScript

import AbstractService from './abstractService'
export default class AccountDeleteService extends AbstractService {
request(password) {
return this.post('/user/deletion/request', {password: password})
}
confirm(token) {
return this.post('/user/deletion/confirm', {token: token})
}
cancel(password) {
return this.post('/user/deletion/cancel', {password: password})
}
}