Clear entries in ssh-keys when deleting account

This commit is contained in:
Miraty 2023-06-21 22:08:57 +02:00
parent b2fdc0c925
commit ccd17b7ffa

View file

@ -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]);