On Tue, Nov 12, 2024 at 02:48:28PM +0100, Tomas Vondra wrote:
> Thanks for the patch, seems like a useful feature. Please add the patch
> to the next commitfest (2025-01) at https://commitfest.postgresql.org/

FYI, I have a large set of such things in my own repo with a clone of
passwordcheck:
https://github.com/michaelpq/pg_plugins/tree/main/passwordcheck_extra

Not all of them may be useful, still the minimal length is one of
them:
- passwordcheck_extra.special_chars, to define a list of special characters
  with the password needing at least one. Default is "!@#$%^&*()_+{}|<>?=".
- passwordcheck_extra.restrict_lower, to enforce the use of at least one
  lower-case character.
- passwordcheck_extra.restrict_upper, to enforce the use of at least one
  upper-case character.
- passwordcheck_extra.restrict_numbers, to enforce the use of at least
  one number.
- passwordcheck_extra.restrict_special, to enforce the use of at least
  one special character listed in \"passwordcheck_extra.special_chars\".
- passwordcheck_extra.minimum_length, minimum length of password allowed.
  Default is 8, which likely sucks.
- passwordcheck_extra.maximum_length, maximum length of password allowed.
  Default is 15, which definitely sucks, but it is useful for tests.

I would not mind if you just copy-paste some of this stuff, and the
code is released under the PostgreSQL license.  Feel free to not worry
about the authorship part as well, I'm fine even if my name is
discarded.
--
Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to