Conflict with Simple Password Reset Module

Created on 30 August 2018, about 7 years ago
Updated 21 July 2025, about 2 months ago

Password fields are not displayed when using both modules Password Separate Form β†’ and Simple Password Reset β†’ .

Password Separate Form always removes the password fields from the user profile form and this causes the fields not to show when the module Simple Password Reset tries to show password fields on the overriden password reset process.

Here's what I did to fix it temporally on my site. If the current path is actually the user/reset then don't hide the password fields.

/**
 * Implements hook_form_FORM_ID_alter().
 * Remove the current password field from the user_profile_form form
 * (user/%/edit).
 */
function change_pwd_page_form_user_profile_form_alter(&$form, &$form_state) {
  // Hide the current password fields except on the user reset password form.
  if (strpos(current_path(), 'user/reset') === false){
	  $form['account']['pass_value']['#access'] = FALSE;
	  $form['account']['pass']['#access'] = FALSE;
  }
}
πŸ› Bug report
Status

Closed: outdated

Version

1.3

Component

Code

Created by

πŸ‡²πŸ‡½Mexico Kontrol_x

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024