Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
WIP: Don't clear unused magic links when new ones are made
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelhwilliams committed Dec 1, 2024
1 parent 39d18d1 commit c4e6fff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/magic_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def create_magic_link(
:return:
"""
current_app.logger.info(f"Creating magic link for {account}")
self.clear_existing_user_record(account.id)

# Don't clear unused magic links when a new one is made - for e2e tests sake 🙃
# self.clear_existing_user_record(account.id)

if not redirect_url:
redirect_url = urljoin(
Expand Down

0 comments on commit c4e6fff

Please sign in to comment.