Clear entries in ssh-keys when deleting account
This commit is contained in:
parent
b2fdc0c925
commit
ccd17b7ffa
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ function authDeleteUser(string $user_id): void {
|
|||
], result_code: $code);
|
||||
if ($code !== 0)
|
||||
output(500, 'Can\'t remove user\'s directory.');
|
||||
|
||||
query('delete', 'ssh-keys', ['username' => $user_id]);
|
||||
}
|
||||
|
||||
query('delete', 'users', ['id' => $user_id]);
|
||||
|
|
Loading…
Reference in a new issue