Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Reporting API 2.2.0 Minor update available for module reporting (2.2.0). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: Project Browser Localizer 3.0.10 Minor update available for module pb_localizer (3.0.10). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7). Security Coverage: NetStorage Media Module netstorage_media now has official Drupal security advisory coverage.

Simple password policy

141 sites Security covered
View on drupal.org

This module enforces a simple password policy with configurable rules for length, character types, and preventing reuse of old passwords. It also allows for password expiration notifications and can be bypassed under certain conditions.

INTRODUCTION

This module implements a simple account policy with the following configurable set of fixed rules:

  • minimum password length
  • minimum amount of lowercase chars (a-z)
  • minimum amount of uppercase chars (A-Z)
  • minimum amount of numeric chars (0-9)
  • minimum amount of special chars not(a-z A-Z 0-9)
  • minimum amount of old password allowed
  • period in which old passwords are not allowed
  • check paswword is not similar to username

The module will also notify the user his password is expired and will send a warning mail ahead of time.

  • expire the password after period
  • send email password is about to expire

Password policy can be ignored using:

  • ignore password policy expiration check on configured routes:
  • don't apply policy for users matching a pattern
  • applying the permission 'bypass password policy'

SIMILAR MODULES

If you want more control over the rules and how a password policy should apply, the password_policy module is more
enhanced. If you want more strict rules, password_strength might be an option too. This module was build to keep it
simple.

* password_policy
* password_strength

REQUIREMENTS

This does not require any other module.

RECOMMENDED MODULES

None

INSTALLATION

Install as you would normally install a contributed Drupal module. Visit
https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

General usage

After installing the module is configured with these default rules:

  • min_length: 12
  • min_lowercase: 1
  • min_uppercase: 1
  • min_numeric: 1
  • min_special: 1
  • min_old: ''
  • min_old_age: ''
  • similar_username: ''
  • ignore_routes:
    • 'entity.user.edit_form'
    • 'system.ajax'
    • 'user.logout'
    • 'admin_toolbar_tools.flush'
    • 'user.pass'
    • 'image.style_public'
  • ignore_users: { }
  • expire_period: '1 year'
  • expire_warning: '3 weeks'

Configuration is found under the "People" configuration item.
/admin/config/people/password_policy

Activity

Tracked releases
5
Tracked since
Aug 2026
Latest release
2 days ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.1.3 Stable Aug 21, 2026
1.1.2 Stable Aug 14, 2026
1.1.1 Stable Aug 14, 2026
1.1.0 Stable Aug 13, 2026
1.1.x-dev Dev Aug 13, 2026