Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ai_trading_discipline_copilot/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_password_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down