[Answered ]-How can I make Backends for reset password from auth lib

1👍

The password is checked by the password validators. The list of validators is specified by the AUTH_PASSWORD_VALIDATORS setting [Django-doc].

You thus can set the validators to the empty list:

# settings.py

# …

AUTH_PASSWORD_VALIDATORS = []

# …

The documentation lists a set of validators that you can use to validate the password. In new projects, by default it will perform four types of validation:

  • UserAttributeSimilarityValidator, which checks the similarity between the password and a set of attributes of the user.
  • MinimumLengthValidator, which checks whether the password meets a minimum length. This validator is configured with a custom
    option: it now requires the minimum length to be nine characters,
    instead of the default eight.
  • CommonPasswordValidator, which checks whether the password occurs in a list of common passwords. By default, it compares to an
    included list of 20,000 common passwords.
  • NumericPasswordValidator, which checks whether the password isn’t entirely numeric.

Leave a comment