user management

Disabling password check in Drupal 6

I've had some clients not wanting the uber cool password strength checking in Drupal 6. Well, here's a very short tip how to disable this.

Just add the following in some javascript (your theme, your module, ...)

<script language="javascript">
// disabling password security check
Drupal.behaviors.password = function(context) {
  return;
}
</script>

Hooray for behaviors!

disable-password-check.png

Written on March 14, 2009 at 08:17, tagged as Drupal, tips, user management

About

drupalcoder.com is a blog on all things Drupal in specific and LAMP on OS X in general. It is maintained by Davy Van Den Bremt, a Belgian (Drupal) web developer and designer living in Ghent. The goal of this blog is to log all interesting things that have crossed the writer's path while developing Drupal sites. You can read all about Davy's professional activities on his LinkedIn profile. If you want to get in touch, use the contact form.