Use input tag 'pattern' attribute on password generator

Users often face challenges with passwords generated by Bitwarden that fail to meet a website’s specific requirements, requiring manual adjustments. While password rules are typically enforced server-side, some websites provide additional client-side guidance through HTML attributes like pattern, maxlength, and minlength. These attributes, when present, can specify constraints such as allowed characters, length limits, or RegEx patterns. However, Bitwarden currently does not detect these hints.

This proposal suggests enabling Bitwarden to recognize these attributes, when available, into its password generator. By doing so, the tool can produce passwords that comply with these constraints, reducing friction and saving users time when creating passwords for sites that use it.

References:

1 Like