Ever had a browser or password manager aggressively auto-fill credentials where it shouldn't?
The No Autocomplete module injects the standard autocomplete="off" attribute into key Drupal user forms (such as the User Login form) to prevent browsers and autofill tools from saving or prepopulating sensitive credentials.
🎯 Use Cases
- Strict Security Policies: Ideal for public kiosks, shared workstations, or high-security environments where internal policies mandate that credentials must be entered manually every time.
- Preventing Unintended Autofill: Keeps credential caches and shared devices from automatically populating passwords across public or semi-public sessions.
⚠️ Important: Modern Browser Limitations
Please keep the following in mind before configuring this module:
- Browser & Password Manager Overrides: Most modern browsers (Chrome, Firefox, Safari, Edge) and password managers (1Password, Bitwarden, LastPass) now deliberately ignore
autocomplete="off"on login and password fields to encourage password manager adoption. While this module ensures the attribute is rendered correctly in Drupal's HTML markup, enforcement ultimately lies with the client browser. - Browser vs. Drupal Autocomplete: This module specifically targets HTML5 browser autofill. It does not modify or affect Drupal's core AJAX entity autocomplete fields (such as taxonomy tags, user entity references, or search fields).
⚡ Drush Commands
drush na-login- Configures the
autocomplete="off"setting for the user login form.
📦 Recommended Modules
- Drush Help
- Enhances the Drush CLI help pages with clear syntax and command options for No Autocomplete.
Supporting organizations:
Sponsored the module development
Savas helped port the module to Drupal 7
Drupal 10+ maintenance
Project information
- Project categories: Developer tools
484 sites report using this module
- By rfay on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.7
released 3 November 2026
Works with Drupal: ^10.6 || ^11.4 || ^12.0
Install:
Development version: 8.x-1.x-dev updated 3 Nov 2026 at 08:21 UTC



