Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample email/theme templates missing postMethod variables #2586

Open
spwitt opened this issue Oct 12, 2023 · 1 comment
Open

Sample email/theme templates missing postMethod variables #2586

spwitt opened this issue Oct 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@spwitt
Copy link
Contributor

spwitt commented Oct 12, 2023

Email templates

The sample email templates provided in FusionAuth's Email Variables documentation do not contain the postMethod query string parameters.

These parameters are used in emailed links to prevent link checkers from consuming the one-time codes to complete actions like passwordless login and email verification.

The sample templates should be reviewed and the parameter added to prevent link checkers from causing issues with these user workflows.

The following email templates should set postMethod=true in the query string:

  • Email verification
  • Registration verification
  • Passwordless login

Theme templates

The Theme Template Variables doc should also include documentation of these parameters for the templates. Only the Email verification template includes documentation on the postMethod parameter, but it does not give information on how it is used.

The following theme templates should document the postMethod variable:

  • Email verification (expand on use)
  • Verify registration
  • OAuth passwordless
@spwitt spwitt added the bug Something isn't working label Oct 12, 2023
@spwitt spwitt changed the title Sample email templates missing postMethod/postBack variables Sample email/theme templates missing postMethod/postBack variables Oct 12, 2023
@spwitt spwitt changed the title Sample email/theme templates missing postMethod/postBack variables Sample email/theme templates missing postMethod variables Oct 12, 2023
@mooreds
Copy link
Contributor

mooreds commented Oct 12, 2023

I would also suggest having all of these templates be included from site/docs/src/email/ (or wherever includes move to from the migration) as files. That way they can easily be synced up in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants