Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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 !!

Activity

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

Releases

Version Type Release date
2.0.x-dev Dev May 4, 2025
2.x-dev Dev May 4, 2025