FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

Forgot Password and Sent Templates incorrectly link 'return to login' when used with setupPassword template #2690

Open jobannon opened 3 months ago

jobannon commented 3 months ago

Description

If using FusionAuth forgot password and password sent templates we will create a link return to login

This link is functional in the context of logging into an application. However, this link does not work in the context of a setup password workflow. Specifically, this template(s) is broken in the following scenario

  1. Create a new user
  2. Send the new user a setupPassword email
  3. Wait for the setup password link to expire
  4. [step 3 is not strickly required but illustrates the point]. See that FusionAuth will indicate the setup password link is expired and the user is invited to have a reset/forgot password link sent to them.
  5. See that the Return to Login button is non-functional. This is b/c in this context we are not logging into an application but rather just inviting a user to setup their password for a new user in the tenant.

Observed versions

1.48.2

Affects versions

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots.

TLDR - this button will not work in the context of a setupPassword workflow, so should be conditionally removed from a users view when they arrive on this page (or the sent page)

image image

Platform

(Please complete the following information)

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional context

Add any other context about the problem here.