You are here

function prlp_form_user_pass_reset_alter in Password Reset Landing Page (PRLP) 8

Same name and namespace in other branches
  1. 6 prlp.module \prlp_form_user_pass_reset_alter()
  2. 7 prlp.module \prlp_form_user_pass_reset_alter()
  3. 7.x prlp.module \prlp_form_user_pass_reset_alter()

File

./prlp.module, line 10
Password Reset Landing Page module.

Code

function prlp_form_user_pass_reset_alter(&$form, FormStateInterface $form_state, $form_id) {
  $config = \Drupal::config('prlp.settings');
  $form['pass'] = array(
    '#type' => 'password_confirm',
    '#title' => t('Set New Password'),
    '#description' => t('Please set a new password so that you can login next time.'),
    '#weight' => -1,
    '#required' => $config
      ->get('password_required'),
  );
}