I'm trying to remove the Password Suggestions from the user registration form -- you know those annoying tips that appear when the user starts to type a new password:

To make your password stronger:

    Make it at least 6 characters
    Add lowercase letters
    Add uppercase letters
    Add numbers
    Add punctuation

the problem is that simply putting .password-suggestions{ display:none; } will not remove it because the because someonemust have hard coded display: block; because in firebug it appears as style="display: block;"

Is there away to unset it through theme's template.php? Can someone suggest a code please?


coreyp_1’s picture

That's annoying. Yes, you can probably do some minor surgery and remove it entirely, but the easiest thing would be to use display: none !important; in your CSS.

tjhart87’s picture

Add this code to a custom module to remove the password strength and suggestions boxes.

 * Implements hook_element_info_alter().
function yourmodule_element_info_alter(&$types) {
  if (isset($types['password_confirm']['#process']) && (($position = array_search('user_form_process_password_confirm', $types['password_confirm']['#process'])) !== FALSE)) {
GuGuss’s picture

I've tested your snippet but it didn't seem to work with the login toboggan module.

I went with the quick "display: none !important" fix for now.

hgoto’s picture

Here is another solution to remove the password suggestion box in sever side. I know this is an old issue but I think this information may be useful.

 * Implements hook_element_info_alter().
function YOURMODULE_element_info_alter(&$type) {

  // Remove client-side password validation for password confirmation.
  // (This is not recommended.)
  foreach ($type['password_confirm']['#process'] as $index => $processor) {
    if ($processor === 'user_form_process_password_confirm') {

The above code is for Drupal 7.x.