Password reset redirect

This topic contains 6 replies, has 3 voices, and was last updated by  DR 6 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #391793

    DR
    Expired Member
    Post count: 78

    Hi guys,
    This post:

    https://wpgeodirectory.com/docs/redirecting-the-login-page/

    Helped in redirecting the login and registration page but we need to redirect the ‘Reset Password link’ to another page by itself. Can you please help with that? Thank you

    DR

    #391796

    Kor
    Moderator
    Post count: 16516

    Hi Dipe,

    It is not possible to redirect the ‘Reset Password link’, unfortunately. What are you trying to achieve there? Wouldn’t it be better to let your users reset the password?

    Thanks!

    #391800

    DR
    Expired Member
    Post count: 78

    Thank you for the response, Kor
    Maybe we were not clear in the request. Here goes:

    The Geodirectory redirects the ‘Forgot Password’ link to the gd-login page we are using another plugin for user management which has a separate page for the password reset form.

    So the user DO get to reset their password, our issue is that the link goes to the GD-login page which has the registration and login forms (which while we understand the function), find distracting from the ‘reset password’ task.

    Now. When you say ‘it is not possible’….

    DR

    #391802

    Kor
    Moderator
    Post count: 16516

    Hi Dipe,

    Please share WP admin credentials and I’ll forward this to a developer. You can post the details here using the private reply option below.

    Thanks!

    #391803

    DR
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #391809

    Kiran
    Moderator
    Post count: 7069

    Hi Dipe,

    Check now, i have added following code snippet to your child theme function.php

    
    
    // Set reset passeword link
    function gd_custom_set_reset_password_link( $login_url, $args, $gd_page_id ) {
        if ( !empty( $args['forgot'] ) && function_exists( 'um_get_core_page' ) ) {
            $login_url = um_get_core_page( 'password-reset' );
        }
    
        return $login_url;
    }
    add_filter( 'geodir_login_url', 'gd_custom_set_reset_password_link', 100, 3 );

    Let us know.

    Thanks,
    Kiran

    #391811

    DR
    Expired Member
    Post count: 78

    That did it. Works fine now thank you Kiran. Thank you..

    DR

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket