website/docs/customize/policies/unique_password.md
The Password Uniqueness policy prevents users from reusing their previous passwords when setting a new password. To use this feature, you will need to create a Password Uniqueness policy, using the instructions below.
This policy maintains a record of previously used passwords for each user. When a new password is created, it is compared against this historical log. If a match is found with any previous password, the policy is not met, and the user is required to choose a different password.
The password history is maintained automatically when this policy is in use. Old password hashes are stored securely in authentik's database.
:::info This policy takes effect after the first password change following policy activation. Before that first change, there's no password history data to compare against. :::
For comprehensive password security, consider using this policy alongside:
To implement a policy that prevents users from reusing their previous passwords, follow these steps:
password. This field name must match the field name used in your Prompt stage.default-password-change flow, edit the default-password-change-prompt stage and add the policy in the Validation Policies section.:::info Password history records are stored securely and cannot be used to reconstruct original passwords. :::