You are here

prlp.module in Password Reset Landing Page (PRLP) 8

Same filename and directory in other branches
  1. 6 prlp.module
  2. 7 prlp.module
  3. 7.x prlp.module

Password Reset Landing Page module.

File

prlp.module
View source
<?php

/**
 * @file
 * Password Reset Landing Page module.
 */
use Drupal\Core\Form\FormStateInterface;
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'),
  );
}

Functions