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, )