Skip to content

Create LinkTokenGenerator and a TimeoutMixin and reuse it for all token links - #5081

Open
frjo wants to merge 8 commits into
mainfrom
enhancement/mail-token-generator
Open

frjo wants to merge 8 commits into
mainfrom
enhancement/mail-token-generator

Conversation

@frjo

@frjo frjo commented Nov 30, 2026

Copy link
Copy Markdown
Member

We create a number of links with tokens that are e-mails to users. This PR create one set of functions that are reused for all of them.

  • The LinkTokenGenerator are used for:
    • PasswordResetLinkTokenGenerator
    • ActivationTokenGenerator
    • PasswordlessLoginTokenGenerator
    • PasswordlessSignupTokenGenerator
    • CoApplicantInviteTokenGenerator
  • Create separate expire settings for each type. All defaults to 15 minutes except COAPPLICANT_INVITE_TIMEOUT that defaults to 3 days. Things you trigger yourself -> default 15 minutes, things other people trigger for you -> default 3 days.

Test Steps

  • Test that all the token links works just as before.

@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter labels Nov 30, 2026
@frjo
frjo requested a review from wes-otf November 30, 2026 11:50
@frjo
frjo force-pushed the enhancement/mail-token-generator branch from 6f0e183 to 89afb00 Compare November 30, 2026 12:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Minor Minor change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant