prlp.module in Password Reset Landing Page (PRLP) 8
Same filename and directory in other branches
Password Reset Landing Page module.
File
prlp.moduleView 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
Name | Description |
---|---|
prlp_form_user_pass_reset_alter |