Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

The PUG (Password Suggestions) module allows you to customize the text displayed for password recommendations on user registration and editing forms. It provides a user-friendly interface to change these suggestions, such as altering "Weak" to "Poor" or "Good," without enforcing password validation rules. This module is useful for informing users about password requirements when only built-in validation is active or for exposing recommendations in decoupled architectures.

INTRODUCTION

The PUG (Password Suggestions) module provides a user interface to configure text contained in the password recommendations display on user add/edit form. For example, instead of saying a password is "Weak" you can specify it as "Poor", "Fair" or "Nice". It is fully configurable.

Note: While the module does allow site administrators to specify the password format, it does not enforce any of these suggestion during password validation

This module is useful in the following case:

  • While modules like Password Policy and Better Password give site admins the ability to alter the password validation process, they have limitations in their ability to inform users to the formats they may use. PUG fills this gap by creating a clean format to list these additional requirements
  • When in-built password validations are working and you just need to show the recommendations while user type the password in add/edit form.
  • When you are following the decoupled architecture and want to expose the password recommendations to the middleware, PUG will be a good choice for you.

REQUIREMENTS

This module requires the following:
* PHP 7.3 or greater
* Drupal core 8.8.0 or greater

INSTALLATION

  • Strongly recommend installing this module using composer:
    composer require drupal/pug

CONFIGURATION

  • Visit /admin/config/people/accounts - (Administration > Configuration > People > Account settings)
  • Make sure the option "Enable password strength indicator" must be checked.

HOW TO USE

  • Follow the configuration section.
  • Goto to user add or edit form
  • Enter you password in the Password field.
  • See the Recommendations under Confirm Password field. Here, is what you have configured in the settings.

ABOUT PUG REST RESOURCE

  • If you have enabled REST UI module then:
    Goto, (/admin/config/services/rest)
    Find the API by name - Password Suggestions
  • Just enable and use it. Cheers !!

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.x-dev Dev 10–11 May 4, 2025
2.x-dev Dev 10–11 May 4, 2025