From 704ce6e3c28dd94979aa3ae27717ca87701eadca Mon Sep 17 00:00:00 2001 From: Thonyk Date: Wed, 15 Jan 2025 03:54:43 +0100 Subject: [PATCH] Fix: simplify device activation url --- app/core/myeclpay/endpoints_myeclpay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/myeclpay/endpoints_myeclpay.py b/app/core/myeclpay/endpoints_myeclpay.py index 479721254..ebd758614 100644 --- a/app/core/myeclpay/endpoints_myeclpay.py +++ b/app/core/myeclpay/endpoints_myeclpay.py @@ -1265,7 +1265,7 @@ async def create_user_devices( "activate_myeclpay_device_mail.html", ).render( { - "activation_link": f"{settings.CLIENT_URL}myeclpay/users/me/wallet/devices/activate?token={activation_token}", + "activation_link": f"{settings.CLIENT_URL}myeclpay/devices/activate?token={activation_token}", }, ) background_tasks.add_task( @@ -1284,7 +1284,7 @@ async def create_user_devices( @router.get( - "/myeclpay/users/me/wallet/devices/activate", + "/myeclpay/devices/activate", status_code=200, ) async def activate_user_device(