Fix error on the sign up page with disabled password requirements FF and visible admin requirements
The following discussion from !173725 (merged) should be addressed:
-
@JeremyWuuuuu started a discussion: (+1 comment) A question here @syarynovskyi, sorry for bothering, I am experiencing this issue right now when the FF was not turned on, meaning that
USER_INFO
cannot be found within the ruleset, herethis.findRule(USER_INFO)
would be returningundefined
back tocheckValidity
, which will cause error.In this file, the validity checking logic is bound to
this.form.elements.new_user_[]
instead of the feature flag, which went wrong when we keep the FF off.