Set a password policy

Enable the default password policy

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

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

  • 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. This logic also needs updated on the reset_pw page. Below are a set of screenshots that show specifically how to do this.

Set a new minimum length
Change this text in the signup/login element

Change this logic to reflect the new rules you set up

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
Set new logic on the icon's group

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

Set new logic on the continue button in the signup/login reusable

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.

Last updated

Was this helpful?