From 567b863742acbbbeb82ce85a7ca08b21371fd327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 28 Mar 2022 22:25:37 +0000 Subject: [PATCH] comment --- api/kiwi_vpn_api/routers/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/kiwi_vpn_api/routers/admin.py b/api/kiwi_vpn_api/routers/admin.py index 758b100..ca0ad6e 100644 --- a/api/kiwi_vpn_api/routers/admin.py +++ b/api/kiwi_vpn_api/routers/admin.py @@ -57,6 +57,7 @@ async def create_initial_admin( if current_config is None: raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST) + # fail if any user exists with Connection.session as db: if db.exec(select(User).limit(1)).first() is not None: raise HTTPException(status_code=status.HTTP_409_CONFLICT)