How to Make Members Confirm their Password on your Webflow Site

This post will teach you how to make members confirm their password on your webflow site, and when/why you might want to make members confirm their password on your webflow site.

Ajoutez des adhésions à votre projet Webflow en quelques minutes.

En savoir plus

Plus de 200 composants Webflow clonables gratuits. Aucune inscription n'est nécessaire.

Voir la bibliothèque

Ajoutez des adhésions à votre projet React en quelques minutes.

Commencer

How to Make Members Confirm their Password on your Webflow Site

Memberscripts needed:

  1. https://www.memberstack.com/scripts/46-confirm-password

Tutorial:

Cloneable:

https://confirm-password.webflow.io/

Why/When would need to Make Members Confirm their Password?

  1. Ensure users don’t have typos in their passwords when creating an account.

No one wants to create a new account and later have to reset their password because they accidentally mistyped it when signing up.

To avoid this, you can simply add an additional password confirmation field to your sign-up form, forcing users to type their passwords twice. This will ensure that they get their passwords right and avoid any unpleasantness.

Unless, of course, they mistype them the exact same way twice, in which case… that’s just on them.

Making website members confirm their password on Webflow sites

To add a password confirmation field to a Webflow form, we’re going to use MemberScript #46 – Confirm Password. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting up the form

The first thing you’ll need to do is build out the form itself and style it however you want.

Once you’ve created the form and you’ve added a password confirmation field, select the field and add the following attribute to it:

  • ms-code-password=”confirm”

As far as setting up the field, that’s all there is to it.

If you want to go the extra mile, you can add some additional styling to the password confirmation field based on whether the passwords match or not.

For example, once users start typing the password in the confirmation field, its background can be red, and once the passwords match, the background can turn green.

To do this, simply add a div block inside the same wrapper as the confirmation field itself and under this div block another two empty div blocks. Next, add combo classes to each empty div block, each with the same class as the form field itself and an additional “valid” or “invalid” class.

After you’ve styled the two empty div blocks, go ahead and select the parent div block and set its visibility to hidden.

Making it work

Now that you’ve got the form set up and you’ve created the show/hide buttons, all you need to do is add the MemberScript #46 custom code to your page, before the closing body tag.

Conclusion

That’s everything, you can now go ahead and test your form’s show/hide password feature.

Si vous souhaitez utiliser notre projet de démonstration pour commencer, cliquez simplement sur le bouton ci-dessous pour l'ajouter à votre site Webflow.

Our demo can help you add a password confirmation field to your form and block submissions unless the two passwords match.

Take me to the Scripts

TABLE DES MATIÈRES
Ovidiu
Qu'est-ce que Memberstack ?

Auth & paiements pour les sites Webflow

Ajoutez des logins, des abonnements, du contenu à accès limité, et plus encore à votre site Webflow - facile et entièrement personnalisable.

En savoir plus
Commencer à construire

Essayez Memberstack et découvrez ce que vous pouvez construire !

Memberstack est 100% gratuit jusqu'à ce que vous soyez prêt à vous lancer - alors, qu'attendez-vous ? Créez votre première application et commencez à construire dès aujourd'hui.