diff --git a/fn/auth.php b/fn/auth.php index d96d1cb..fd3d48f 100644 --- a/fn/auth.php +++ b/fn/auth.php @@ -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]);