- 🇦🇺Australia acbramley
I believe this is outdated, looking at user.js:
The only thing accessing .username in evaluatePasswordStrength is passwordSettings.username
The only thing calling evaluatePasswordStrength is passwordCheck()
The very top of that function hasif (settings.password.showStrengthIndicator) { // Evaluate the password strength. const result = Drupal.evaluatePasswordStrength( $mainInput[0].value, settings.password, );
Therefore, evaluatePasswordStrength wouldn't be called unless settings.password is defined.
The test mentioned in the IS also no longer exists.