From 811e9991d0b2835e58fcb6f3e31d1c836e6c5a8c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 25 Oct 2022 08:07:15 +0200 Subject: [PATCH] Fixed user confirmation :/ #70 --- kdb-bot/src/bot_api/controller/auth_controller.py | 2 +- kdb-web/src/app/services/auth/auth.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/bot_api/controller/auth_controller.py b/kdb-bot/src/bot_api/controller/auth_controller.py index c5cf9cbf3a..d3eb3c3e9d 100644 --- a/kdb-bot/src/bot_api/controller/auth_controller.py +++ b/kdb-bot/src/bot_api/controller/auth_controller.py @@ -74,7 +74,7 @@ class AuthController: await self._auth_service.add_auth_user_async(dto) return '', 200 - @Route.post(f'{BasePath}/register/') + @Route.post(f'{BasePath}/register-by-id/') async def register_id(self, id: str): result = await self._auth_service.confirm_email_async(id) return jsonify(result) diff --git a/kdb-web/src/app/services/auth/auth.service.ts b/kdb-web/src/app/services/auth/auth.service.ts index a19195db55..b8434f50d5 100644 --- a/kdb-web/src/app/services/auth/auth.service.ts +++ b/kdb-web/src/app/services/auth/auth.service.ts @@ -80,7 +80,7 @@ export class AuthService { } confirmEMail(id: string): Observable { - return this.http.post(`${this.appsettings.getApiURL()}/api/auth/register/${id}`, { + return this.http.post(`${this.appsettings.getApiURL()}/api/auth/register-by-id/${id}`, { headers: new HttpHeaders({ 'Content-Type': 'application/json' })