0

WordPress and Pilotpress - Forgot Password Link?

We use Pilotpress in order to integrate Ontraport into our Wordpress site. We have customers filling out a "forgot password" form a lot when they forget what their password is when logging into our "members only" website. It would be great if there was a way for our customers to reset their password themselves. I've seen that on a lot of websites where they send you a link to reset it, instead of sending the password in an email. I think this might be a more secure way for them to reset their password, instead of their current password showing up in their email.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

Topic moved to: https://support.ontraport.com/hc/en-u...

You can use the default WordPress "forgot password" function on your login page. Most of our clients use the [login_page] short code on their customized login page for their membership site. The code below shows how to display the default WordPress "Forgot your password?" link that can be placed under the shortcode.

<a href="/wp-login.php?action=lostpassword">Forgot your password?</a></p>

Remember to change to the "Text" tab at the upper right of the editor window to insert the HTML code.

image description

edit flag offensive delete publish link more
0

The one caveat to the above is that after the person enters to get their new password emailed to them, the page will redirect to the default WordPress login page.

WordPress does have "template tag" page for the lost password function in WordPress: https://codex.wordpress.org/Function.... Your developer could add the template tag to your theme to control the redirect action.

The raw PHP cannot be inserted into WordPress pages, but for those who simply want the lost password user to be redirected to the same login page, or to the home page, you can use the two examples provided on that template tag page and a plugin to allow PHP code to be placed inside your WordPress page.

The plugin PHP Everywhere allows you to insert PHP code into a page. In our testing it does not conflict with PilotPress. It provides a box in the Edit Page mode to insert PHP code into:

image description

After you insert the code into that box, you simply place the short code [php_everywhere] on the page where you want the code inserted. To have the person submitting their lost password information to be redirected to your site's home page, use the following code in that PHP Everywhere box: <a href="<?php echo wp_lostpassword_url( get_bloginfo('url') ); ?>" title="Lost Password">Lost Password</a>

If you want them to remain on the same page after submitting, then use this code: <a href="<?php echo wp_lostpassword_url( get_permalink() ); ?>" title="Lost Password">Lost Password</a>

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-01-27 08:02:45 -0700

Seen: 192 times

Last updated: Jul 18 '16