Support

Home Forums WP User Integration Forgot Password Link is Missing on User Log-in Pop-up

Forgot Password Link is Missing on User Log-in Pop-up

Posted: August 31, 2016 at 1:39 pm

Viewing 3 reply threads


gongconduit

August 31, 2016 at 1:39 pm

Hi there!

So there is a usability problem with the process flow of a return User Log-in. When we set events to create users automatically based on their e-mail, when the user returns to the website and tries to check out with the same e-mail address they receive this error message: “An error has occurred:
You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.”

First really quick, I want to ask, what is the Password they are supposed to use at this point? Personally me pretending to be the user I am searching for a Forgot Password link to try and get back into the site.

So continuing on, now this user clicks to “Log-in” and since they know the system is telling them they are Already In The System, they are going to search for the “Forgot Password” link. Which is the first thing I did, and yet, this link does not exist on the pop-up window. So the user is left confused what to do….

I really think this should just be added into the EE4 updates, how are other people handling this? In any case, I have searched for how to try to work around to try and add the Forgot Password link to the window. All I could find was this code by Josh Feck https://gist.github.com/joshfeck/4b885d742a3d048b49b5 and I have added this to a custom functions plug-in however it is not working.

Can you please help?

Thank you!

Jeff


Josh

  • Support Staff

August 31, 2016 at 2:12 pm

Hi Jeff,

First really quick, I want to ask, what is the Password they are supposed to use at this point?

The password for their account on that website.

I have added this to a custom functions plug-in however it is not working.
Can you please help?

Is your custom functions plugin activated at the moment?


gongconduit

August 31, 2016 at 3:41 pm

Thank you Josh I have followed some of your answers on the forums here and they have been very helpful. Thanks for your first response, I now realize that there is an email first sent where the user can set their new password. So it makes sense to me now.

So continuing on to your second response, I have added the code into a custom functions plugin and it is currently activated. Just to verify, here are some screen shots for reference:

Here is a screenshot of the custom plug-in code and you can see it is activated:
http://theconduitcenter2.com/AddedForogtPWCode.png

When I load in an incognito (cache free browser) it still is not displaying:
http://i63.tinypic.com/r7u1kx.png


Josh

  • Support Staff

September 2, 2016 at 12:11 pm

Yeah that code isn’t intended to do what you think it should do. There’s a separate log in screen for logged out users when the event requires log-in and that’s where the code adds the forgot password link.

You can add a link to the modal for the email match error by adding the following to your custom function file:

add_action( 'AHEE__attendee_information__reg_step_start', 'jf_ee_add_forgot_password_link_matching_email');
function jf_ee_add_forgot_password_link_matching_email() {
    ?>
    <a class="lost-password-link" href="<?php echo wp_lostpassword_url( get_permalink() ); ?>" title="Lost Password">Lost your password?</a>
    <script>
    jQuery(document).ready(function($){
        $(".lost-password-link").hide();
    });
    jQuery( document ).ajaxComplete(function() {
        jQuery( ".lost-password-link" ).toggle().insertAfter( ".ee-wpuser-login-button" );
    });
    </script>
    <?php
}
Viewing 3 reply threads

The support post ‘Forgot Password Link is Missing on User Log-in Pop-up’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso