diff --git a/core/misc/password-unmask.js b/core/misc/password-unmask.js index c236e6515b..503587e59c 100644 --- a/core/misc/password-unmask.js +++ b/core/misc/password-unmask.js @@ -4,17 +4,14 @@ * https://www.drupal.org/node/2815083 * @preserve **/ - (function (Drupal, once) { var hidePass = Drupal.t('Hide password'); var showPass = Drupal.t('Show password'); - var unmaskClickHandler = function unmaskClickHandler(element, trigger) { element.setAttribute('type', element.getAttribute('type') === 'password' ? 'text' : 'password'); trigger.setAttribute('aria-pressed', element.getAttribute('type') === 'password' ? 'false' : 'true'); trigger.textContent = element.getAttribute('type') === 'password' ? hidePass : showPass; }; - var unmaskButton = function unmaskButton(element) { var trigger = document.createElement('button'); trigger.setAttribute('type', 'button'); @@ -26,7 +23,6 @@ return unmaskClickHandler(element, trigger); }); }; - Drupal.behaviors.passwordUnmask = { attach: function attach(context) { once('password-unmask', 'input[type=password][data-drupal-password-unmask]', context).forEach(function (password) { @@ -34,4 +30,4 @@ }); } }; -})(Drupal, once); +})(Drupal, once); \ No newline at end of file diff --git a/core/modules/user/user.module b/core/modules/user/user.module index f818449183..43378df753 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1166,7 +1166,6 @@ function _user_password_strength_settings(array $password_settings = []) { return $password_settings; } - /** * Implements hook_modules_uninstalled(). */