Categories

(83)
(69)
(8)
(34)
(74)
(149)

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

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

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' );
      break;
  }
}
7 votes, Rating: 5

Read also

1

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...

2

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

3

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.

4

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...

5

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