From 466e41ebe8bc694074a4453e5fa66527f4244c58 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 16 Jul 2020 14:02:52 +0200 Subject: [PATCH] [core] Change formating --- kibicara/webapi/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kibicara/webapi/admin.py b/kibicara/webapi/admin.py index 7aa62a3..af8ddd0 100644 --- a/kibicara/webapi/admin.py +++ b/kibicara/webapi/admin.py @@ -1,5 +1,6 @@ # Copyright (C) 2020 by Thomas Lindner # Copyright (C) 2020 by Cathy Hu +# Copyright (C) 2020 by Christian Hagenest # # SPDX-License-Identifier: 0BSD @@ -78,14 +79,14 @@ async def admin_register(values: BodyAdmin): - **email**: E-Mail Address of new hood admin - **password**: Password of new hood admin """ - register_token = to_token(**values.__dict__) - logger.debug(f'register_token={register_token}') - # TODO implement check to see if email already is in database if len(values.password) < 8: logger.debug('Password is too short') raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST, detail='Password is too short' ) + register_token = to_token(**values.__dict__) + logger.debug(f'register_token={register_token}') + # TODO implement check to see if email already is in database try: email.send_email( to=values.email,