Note: How to switch off user's password verification during registration

How to switch off user's password verification during registration

When registering on a site a user will normally be asked for password verification which is required in Drupal by default.

user password

Sometimes clients elect to have the given mechanism disabled. Web developers can do that by adding the following code to this module:

 * Implementation of hook_form_alter()
function mymodule_form_alter(&$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'user_register':
      drupal_add_js("Drupal.behaviors.password = function(context) { return; }", 'inline' );
7 votes, Rating: 5

Read also


It happens very often that sorting on a specific criterion should be done. Views, Nodequeue, Flag and other similar modules are used for that. But sometimes functional of these modules is not...


Pressflow is Drupal’s distributive that provides advanced efficiency and scaling. It’s developed by the guys from Four Kitchens Company.


I was asked many times how to translate element <Any> in drop-down list in filter of views module. Yes! It can’t be done in a standard way by interface translation.


What’s CDN? Content Delivery Network or Content Distribution Network, CDN – geographically distributed network infrastructure which allows optimizing delivery and distribution of content to the...


The founders and developers of MySQL resigned from their native company which belongs to Oracle (once Sun consumed MySQL and later Oracle consumed Sun).

Subscribe to our blog updates