Unverified Commit 2da977b3 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3086265 by fhaeberle: The /js/user.es6.js component does not pass our custom lint rules

(cherry picked from commit eaa00809)
parent 974607ac
Loading
Loading
Loading
Loading
+9 −0
Changes for js/user.es6.js: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -153,6 +153,15 @@
   * The default implementation of this function hard codes some markup inside
   * this function. Rendering markup is now handled by
   * Drupal.behaviors.password.
   *
   * @param {string} password
   *   Password to evaluate the strength.
   *
   * @param {Array.<string>} translate
   *   Settings and translated messages added by user_form_process_password_confirm().
   *
   * @return {Array.<string>}
   *   Array containing the strength, tips, indicators text and class.
   */
  Drupal.evaluatePasswordStrength = (password, translate) => {
    password = password.trim();