You are here

function password_policy_past_passwords_count_admin_form in Password Policy 7.2

Admin form callback for password history constraint.

1 string reference to 'password_policy_past_passwords_count_admin_form'
past_passwords.inc in plugins/constraint/past_passwords.inc

File

plugins/constraint/past_passwords.inc, line 21

Code

function password_policy_past_passwords_count_admin_form($form, &$form_state, $constraint) {
  $sub_form['past_passwords_fieldset'] = array(
    '#type' => 'fieldset',
    '#title' => t('Past passwords'),
  );
  $sub_form['past_passwords_fieldset']['past_passwords'] = array(
    '#type' => 'textfield',
    '#title' => t('Check against previous passwords'),
    '#default_value' => $constraint->config['past_passwords'],
    '#description' => t('Password cannot match this many previous passwords.'),
  );
  return $sub_form;
}