# Set a password policy

## Enable the default password policy

This template includes a built-in password check UI during sign up.

![](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-Ls3QQor-a39iHNXy0B4%2F-Ls3SdE3TtFkItAmOnYE%2FScreen%20Shot%202019-10-25%20at%2012.41.13%20PM.png?alt=media\&token=0e46f9b1-a4e8-43de-b983-000b51e8df54)

To activate this feature, please go to your Bubble editor and go to Settings > General and update these settings:

![](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-Ls3QQor-a39iHNXy0B4%2F-Ls3SuQuSXmLoUZDZPsy%2FScreen%20Shot%202019-10-25%20at%2012.49.23%20PM.png?alt=media\&token=3933c5d0-e47d-450d-9a79-c50c04d6680e)

* Check the box for *Define a password policy*
* Enter 5 for the *Password minimum length*
* Check the box for *Require a number*

### (Optional): Customize your app's password policy

If you want to modify the password policy (e.g. require a capital letter or change the minimum password length), you would have to update the password check logic on the [signup/login reusable element](https://docs.airdev.co/canvas/2.0.0-1/using-the-template/reference/reusable-elements/signup-login). This logic also needs updated on the [`reset_pw` page](https://docs.airdev.co/canvas/2.0.0-1/using-the-template/reference/pages/reset_pw-page). Below are a set of screenshots that show specifically how to do this.

![Set a new minimum length](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-LxMScHfGnoxOV6i436W%2F-LxMXhw1UT79-iAUNMJ7%2Fpassword-policy-settings.PNG?alt=media\&token=7e4cf61b-e463-4ae1-85de-6af3446cd882)

![Change this text in the signup/login element](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-LtzEbVRLKZ5aDWr0f34%2F-LtzEzSF7Y7aco1drDKD%2FScreenshot%20from%202019-11-18%2010-59-12.png?alt=media\&token=80eed2a8-2b31-4c05-8b35-bb18e22828c5)

![Change this logic to reflect the new rules you set up ](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-LtzEbVRLKZ5aDWr0f34%2F-LtzFMdatqTlGlf_-sqL%2FScreenshot%20from%202019-11-18%2011-03-13.png?alt=media\&token=ede8e419-6476-4dd7-887d-37548aba37ff)

The icon on the login inputs and the icon's group also need to be updated. This is the `reset_pw` page.

![Set new logic on the icon](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-LxMGCfdkE6pmatYVt3I%2F-LxMS5nW6Nom61xXujZA%2Fpassword-policy.PNG?alt=media\&token=f91282ed-caf2-428b-8fc1-01c1311432f3)

![Set new logic on the icon's group](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-LxMScHfGnoxOV6i436W%2F-LxMXHYDs5y5OZYoQdtB%2Fpassword-policy-2.PNG?alt=media\&token=18fc4c9a-0292-4870-9af3-d9336830fec2)

Remember to change the conditions of "Button CONTINUE" as well.

![Set new logic on the continue button in the signup/login reusable](https://2550662654-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYJWnUT3lUFQk1K9BCK%2F-M5iEHXP4FmKG3BPw9O0%2F-M5iHs6yKJBmiJeFy5u8%2Fcontinue-condition.PNG?alt=media\&token=c4a3f59b-1f5f-4fa5-9411-ba636ab3471a)

In order to require special characters or capital letters in the password, you'll need to edit the Regex conditions found in these groups and in the UI of the focus group which lists the password requirements. That is beyond the scope of this guide.
