From 5cbd6ec00bb1a537217bd9cff9253c9e5bd974b2 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 25 Oct 2022 08:00:49 +0200 Subject: [PATCH] Fixed user confirmation --- kdb-bot/src/bot_api/controller/auth_controller.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kdb-bot/src/bot_api/controller/auth_controller.py b/kdb-bot/src/bot_api/controller/auth_controller.py index 2d03b37a3d..c5cf9cbf3a 100644 --- a/kdb-bot/src/bot_api/controller/auth_controller.py +++ b/kdb-bot/src/bot_api/controller/auth_controller.py @@ -74,6 +74,11 @@ class AuthController: await self._auth_service.add_auth_user_async(dto) return '', 200 + @Route.post(f'{BasePath}/register/') + async def register_id(self, id: str): + result = await self._auth_service.confirm_email_async(id) + return jsonify(result) + @Route.post(f'{BasePath}/login') async def login(self) -> Response: dto: AuthUserDTO = JSONProcessor.process(AuthUserDTO, request.get_json(force=True, silent=True))