upd: add decline endpoint and free up username on decline
This commit is contained in:
parent
786677b079
commit
1d9cb4fad9
13 changed files with 170 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ async function deleteAccount() {
|
|||
if (typed.canceled) return;
|
||||
|
||||
if (typed.result === props.user.username) {
|
||||
await os.apiWithDialog('admin/delete-account', {
|
||||
await os.apiWithDialog('admin/decline-user', {
|
||||
userId: props.user.id,
|
||||
});
|
||||
emits('deleted', props.user.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue