<p>So there's the function to set a <a href="https://docs.craftcms.com/v3/dev/examples/user-profile-form.html#password" rel="nofollow noreferrer">new password</a>, but is there also the possibility to create a second password field to check if both new passwords matches and only then set the new password?</p>

CC BY-SA 4.0
2019-11-06T10:45:33.423Z
[This plugin](https://github.com/alecritson/Craft-Password-Confirm) would be a pretty straight forward rewrite for Craft 3.
Oli
CC BY-SA 4.0
2019-11-06T11:52:48.010Z
Awesome, thank you. Will rewrite this for Craft 3. Thanks as always Oli :)
Christopher Dosin
CC BY-SA 4.0
2019-11-06T14:08:36.137Z
Glad I could help!
Oli
<user-profile><password>
User profile form, repeat new password and check if they match
# User profile form, repeat new password and check if they match

(Asked by: username_0 on 2019-11-03)

So there's the function to set a [new password](https://docs.craftcms.com/v3/dev/examples/user-profile-form.html#password), but is there also the possibility to create a second password field to check if both new passwords matches and only then set the new password?

**Tags:** user-profile, password
> **Comments:**
> **username_1**: [This plugin](https://github.com/alecritson/Craft-Password-Confirm) would be a pretty straight forward rewrite for Craft 3.  
> **username_0**: Awesome, thank you. Will rewrite this for Craft 3. Thanks as always Oli :)  
> **username_1**: Glad I could help!  

---

## 0 answers

