Hiding tab request new password I want to remove the option of request new password from admin section. I have Drupal 8.
/**
 *Implements hook_form_FORM_ID_alter().
 */

function YOURMODULE_form_user_profile_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  unset($form['account']['pass']);
}


Hope it works.