Skip Navigation

[Resolved] How does the lost password ShortCode of Views work?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How does the lost password ShortCode of Views work exactly?

Solution:
The ShortCode

wpv-forgot-password-form

in it's full usage amplitude works like this:

1. This displays a Form that let's you enter the Username or Email and click a button "get new password".

[wpv-forgot-password-form redirect_url="url-to-your-site.com/success/" redirect_url_fail="url-to-your-site.com/failure/" reset_password_url="url-to-your-site.com/reset/"]

2. When all the above attributes are applied, the process works as this:
- redirect_url
This will apply if the username or email entered exists.
It will redirect to the URL set in the attribute redirect_url, and result in a URL like this:

url-to-your-site.com/success/?checkemail=confirm

- redirect_url_fail
This will apply if the username or email entered does not exist.
It will redirect to the URL set in the attribute, and result in a URL like this:

url-to-your-site.com/failure/?wpv_error=invalidcombo

- reset_password_url
This will be the link in your Email, where to the user is directed to enter his new Password.
The link in the email will be similar to:

url-to-your-site.com/reset/?action=rp&key=amLXCkuwZcajvdasfPPDfaPp&login=anything

(Of course, username and key are different in every case)

This link is clickable in the email.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-428134

This support ticket is created 6 years, 2 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Robert Campbell 6 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#614726

I've set up a lost password facility on this website and I have two issues:-

If you browse to hidden link
And click the 'Lost your password' link then you will be taken to the following page:-
hidden link

Here is the code for that page:-

Did you forget your password?

Please enter your user name or e-mail address.  You will receive a link to create a new password via e-mail

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

Issue 1:-
If you put enter a user name or e-mail address which is not recognised and click 'Get New Password' then the redirect to 'hidden link' does not happen. Instead you get the 'hidden link' page displayed again.

Clicking 'Get New Password' a second time brings up the error message 'Invalid username or e-mail'

Could you explain how I can get the redirect_url_fail to work correctly? Or have I misunderstood its use?

Issue 2:-
If you do enter a valid user name or password then the e-mail message which arrives is in plain text with all formatting removed. Is there a way to preserve formatting so that the reset-password link is clickable?

Regards

Robert

#614826

The ShortCode wpv-forgot-password-form in it's full usage amplitude works like this:

[wpv-forgot-password-form redirect_url="url-to-your-site.com/success/" redirect_url_fail="url-to-your-site.com/failure/" reset_password_url="url-to-your-site.com/reset/"]

This displays a Form that let's you enter the Username or Email and click a button "get new password".

When all the above attributes are applied, the process work as this:
- redirect_url
This will apply if the username or email entered exists.
It will redirect to the URL set in the attribute, and result in a URL like this:

url-to-your-site.com/success/?checkemail=confirm

- redirect_url_fail
This will apply if the username or email entered does not exist.
It will redirect to the URL set in the attribute, and result in a URL like this:

url-to-your-site.com/failure/?wpv_error=invalidcombo

- reset_password_url
This will be the link in your Email, where to the user is directed to enter his new Password.
The link in the email will be similar to:

url-to-your-site.com/reset/?action=rp&key=amLXCkuwZcajvdasfPPDfaPp&login=anything

(Of course username and key are different in your case)

This link is clickable in the email.

If this does not work alike this on your install there is an interference that can be caused by:
- Server settings
- Other Plugins
- Other Themes
- Custom Code

To be sure that those things are not the cause of this, you can keep only Toolset enabled and re-test.
Eventually a server log can help to narrow down why and where the redirection fails.

I suggest to create a full backup before you proceed with these tests.

If they bring no success, please provide a copy of your site, so we can analyze this locally.
https://toolset.com/faq/provide-supporters-copy-site/

#614878

Hi Beda

You were correct! The plug in 'User Meta Pro' was causing the conflict. Disabling that plug in solved the problem.

Regards

Robert

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.