FusionAuth / fusionauth-issues

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

passwordValidationRules variable not available on change password themed page in 1.48.0 #2616

Closed jobannon closed 6 months ago

jobannon commented 8 months ago

(Put bug title here)

Description

passwordValidationRules not available when redirecting a user to change their password (after a successful login typically). This was available as a variable on version 1.36.0

Observed versions

1.48.2

Affects versions

>= 1.47.0

Steps to reproduce

Steps to reproduce the behavior:

  1. Update the change password form to have the following on main ${passwordValidationRules}
  2. Create a new user
  3. Force that user to change their password on next login
  4. Have the user login
  5. Observe a null error from freemarker
image

Workaround

If you encounter this issue you may optionally check this value in your theme for null by using an if check. For example [#if passwordValidationRules??]. Or you may reference this object from the tenant - for example tenant.passwordValidationRules.

Expected behavior

No expected behavior (our default theme does a null check on this variable with conditionals) but it is not clear as to why this variable is available on one version of FusionAuth and not on another.

Platform

dev platform - related slack thread https://inversoft.slack.com/archives/C01TJLP2HQ8/p1705544952279809?thread_ts=1705369296.546639&cid=C01TJLP2HQ8

Related

Community guidelines

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

robotdan commented 7 months ago

This was identified by a customer, and we also observed it internally. We need to confirm, but I believe we introduced this issue in 1.47.0 via issue https://github.com/FusionAuth/fusionauth-issues/issues/2360.

andrewpai commented 7 months ago

Internal: fixed as part of