Skip Navigation

[Resolved] Need to add custom validation to toolset password reset form

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 12 replies, has 3 voices.

Last updated by Minesh 3 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2071053

Hi Team,

I have created a password reset page for my WP website using toolset [wpv-reset-password] form. I have checked that it's validation is not working properly. I need to add my custom validation to this form like min. password length, allowed special characters etc.
Please help me to achieve this functionality.

#2071283

Hello and thank you for contacting the Toolset support.

You can use the default validate_password_reset hook from WordPress, check this example https://wordpress.stackexchange.com/a/159883

However, in order to be able to use this hook with the wpv-forgot-password-form, you must not use the reset_password_url to fallback to the default WordPress reset password page that uses the hook.
Instead of:

[wpv-forgot-password-form reset_password_url="<em><u>hidden link</u></em>"]

Use just:

[wpv-forgot-password-form]

Check this previous reply for more information https://toolset.com/forums/topic/password-reset-process/#post-1321209

I hope this helps. Let me know if you have any questions.

#2071339

Hi,

Thanks for the reply but unfortunately I don't want to use the default WP reset password form. I want to use my own page and toolset form which I am using now. If you gave us facility to use toolset reset password form, why can't we extend its functionality with hooks as you suggested?

#2072429

I understand. Would you like to reproduce your use case, minimally, on the following test site:
hidden link

I'll give it a try and check how we can achieve what you are looking for.

Thank you!

#2072435

Hi,
Sorry I am not able to access that link because link is keep blocking by our internal IT team, might be due to some security reasons. Is there another link or another way?

#2072493

I don't think our system has any security layer that should block you. Can you try with these credentials:
hidden link
toolset / toolset@123

#2072565

I am still not able to access this url too. It is showing access denied when I am trying to access from my office laptop. I have already informed this issue to my network security team and they need a day to fix this access issue. If tomorrow I will access the link, I will update you.

#2072595

Ok. Thank you for your feedback. I'll set this ticket as waiting for your feedback. Let me know if you are still unable to access that sandbox site(on AWS), and I can ask our systems team for another instance on a different platform.

#2073323

Hi,
I have created the page and added the reset password form shortcode in above sandbox link but form is not showing. I don't know what's wrong with that.

#2073675

I assume that you were not able to see the forms because you were already logged in. The forms will appear only for non logged in users.

Let me check what I can find and get back to you.

#2073757

Unfortunately, there is no way, currently, to validate the password from the [wpv-reset-password-form]. We have a feature request for it. I added your voice to it so it can be prioritized.

All the best,
Jamal

#2074433

I have tried to do it with jQuery but didn't succeeded. Could you please check if we can achieve this through jQuery.
Like jQuery should check the min length and allowed characters of password before form submission.

#2075561

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Jamal is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.

The thing is that it will require custom JS code that is beyond the scope of our support policy.

If you need custom programming for your project, you are welcome to contact our certified partners:
=> https://toolset.com/contractors/