# Enable Password Policy for Custom HTML Signup Page

**URL:** <https://community.auth0.com/t/enable-password-policy-for-custom-html-signup-page/46063>\
**Category:** Get Help\
**Tags:** password, password-policy\
**Created:** [July 9, 2020, 8:16pm UTC](https://community.auth0.com/t/enable-password-policy-for-custom-html-signup-page/46063 "2020-07-09T20:16:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![preethi.ramiah](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/preethi.ramiah/32/13390_2.png) [@preethi.ramiah](https://community.auth0.com/u/preethi.ramiah)\
**Post date:** [July 9, 2020, 8:16pm UTC](https://community.auth0.com/t/enable-password-policy-for-custom-html-signup-page/46063/1 "2020-07-09T20:16:22Z")

</div>

Has anyone implemented password policy checking for custom HTML signup page?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 10, 2020, 5:12pm UTC](https://community.auth0.com/t/enable-password-policy-for-custom-html-signup-page/46063/2 "2020-07-10T17:12:53Z")

</div>

Hi @preethi.ramiah,

You can edit the existing `displayError(err)` function to specifically handle a password error (`err.code === "invalid_password"`) and display `err.policy`.

Let me know if you have questions,  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 25, 2020, 5:12pm UTC](https://community.auth0.com/t/enable-password-policy-for-custom-html-signup-page/46063/3 "2020-07-25T17:12:57Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
