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' })