From e95592764471ba7ea8d8ba2f34b3f1d6db3c9412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 19 Mar 2022 23:56:21 +0000 Subject: [PATCH] doc --- api/kiwi_vpn_api/routers/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/kiwi_vpn_api/routers/admin.py b/api/kiwi_vpn_api/routers/admin.py index 6143038..eef10ec 100644 --- a/api/kiwi_vpn_api/routers/admin.py +++ b/api/kiwi_vpn_api/routers/admin.py @@ -16,7 +16,7 @@ router = APIRouter(prefix="/admin") ) async def install( config: Config, - user: schemas.UserCreate, + admin_user: schemas.UserCreate, current_config: Config | None = Depends(Config.load), ): if current_config is not None: @@ -28,7 +28,7 @@ async def install( async for db in Connection.get(): admin_user = schemas.User.create( db=db, - user=user, + user=admin_user, crypt_context=await config.crypto.crypt_context, )