- πΊπΈUnited States bluegeek9
Drupal 7 is End of Life. We recommend upgrading to a supported version of Drupal.
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;
}
}
Closed: outdated
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Drupal 7 is End of Life. We recommend upgrading to a supported version of Drupal.