diff --git a/src/ai_trading_discipline_copilot/routers/auth.py b/src/ai_trading_discipline_copilot/routers/auth.py index 4822ee2..5de2c75 100644 --- a/src/ai_trading_discipline_copilot/routers/auth.py +++ b/src/ai_trading_discipline_copilot/routers/auth.py @@ -529,7 +529,7 @@ async def forgot_password( if user: plain_token = await PasswordResetService.create_reset_token(db, user) - reset_url = f"{settings.frontend_url}/reset-password?token={plain_token}" + reset_url = f"{settings.frontend_url}/#/reset-password/{plain_token}" background_tasks.add_task( send_reset_email_task, user_id=user.id, diff --git a/tests/test_password_reset.py b/tests/test_password_reset.py index 85dbc68..e9d17bb 100644 --- a/tests/test_password_reset.py +++ b/tests/test_password_reset.py @@ -350,7 +350,7 @@ async def test_forgot_password_existing_email( assert call_kwargs["to"] == test_user.email assert "Reset your password" in call_kwargs["subject"] assert "Reset Password" in call_kwargs["html"] - assert "/reset-password?token=" in call_kwargs["html"] + assert "/#/reset-password/" in call_kwargs["html"] @pytest.mark.anyio