# Enforcing password strength with custom database and no user migration

**URL:** <https://community.auth0.com/t/enforcing-password-strength-with-custom-database-and-no-user-migration/84413>\
**Category:** Get Help\
**Tags:** password, password-strength, custom-database\
**Created:** [June 1, 2022, 4:35pm UTC](https://community.auth0.com/t/enforcing-password-strength-with-custom-database-and-no-user-migration/84413 "2022-06-01T16:35:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.o](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matt.o/32/34507_2.png) [@matt.o](https://community.auth0.com/u/matt.o)\
**Post date:** [June 1, 2022, 4:35pm UTC](https://community.auth0.com/t/enforcing-password-strength-with-custom-database-and-no-user-migration/84413/1 "2022-06-01T16:35:40Z")

</div>

We are using a custom database as well as a custom styled universal login page. We are not using the user migration feature. We are only allowing password resets through Auth0, however I don’t see how to enable the password strength feature. Is it possible to enable this so that Auth0 enforces a password policy? If not, what is the cleanest way to implement this?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 1, 2022, 6:52pm UTC](https://community.auth0.com/t/enforcing-password-strength-with-custom-database-and-no-user-migration/84413/3 "2022-06-01T18:52:51Z")

</div>

Hi @matt.o ,

Welcome to the Auth0 Community!

I understand that you want to set up the password policy for users stored in custom database. Have you tried creating a Custom Database Connection, disabling “Import Users to Auth0” and setting up the password strength under the “Password Policy” tab?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/d/f/df4b624d9f326417b3ea5d1611189e838cbc8c6f.jpeg)

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/e/5e6ce6f3504333b0fbb3782815f77071d0ebbbfa.jpeg)  
  
  
[This](https://auth0.com/blog/configuring-postgresql-as-auth0-custom-database/#Enabling-Custom-Databases) blog article explains how to configure the custom database and use PostgreSQL as an example.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 5:16pm UTC](https://community.auth0.com/t/enforcing-password-strength-with-custom-database-and-no-user-migration/84413/4 "2022-12-21T17:16:41Z")

</div>


