Disable password strength indicator

Public

Disable the password strength indicator on user registration form.

Get raw version
php
  1. /*
  2.  * Implements hook_form_FORM_ID_alter().
  3.  */
  4. function MYMODULE_form_user_register_form_alter(&$form, &$form_state) {
  5. $form['#attached']['js'][] = drupal_get_path('module', 'MYMODULE') . '/myjsfile.js';
  6. }

In JS file add this snippet

Get raw version
javascript
  1. Drupal.behaviors.password.attach = function (context, settings) {};