• Resolved delaitec

    (@delaitec)


    Hello, Hope all is well!

    I keep running tests on Heateor and New User Approve to help improve the 2 plugins that are great now that they are compatible.

    In my tests I identified a bug, I will explain below:

    When the NEW USER APPROVE is ACTIVE, and I do the “Registration” (first login) via Google or Facebook, Heateor does not perform any of the redirection options.

    No matter which option I select in “REGISTRATION REDIRECTION” (Same Page, Homepage, Account dashboard OR Custom Url).

    After “Registration“, the user is always redirected to the WordPress Default Login screen: “wp-admin, wp-login“.

    This happens both when I try to “Register” on the My Account page and on the WordPress Default Login Page.

    OBS 1.: After registering, when trying to “LOGIN” using google, the redirection options chosen in (LOGIN REDIRECTION) work normally.
    The problem only occurs on the first login “Registration“.

    OBS 2.: Only tested on Google and Facebook

    I hope it helps to solve ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter delaitec

    (@delaitec)

    If you need any more information, just ask me.

    I really want to help fix this bug.

    Plugin Author Heateor Support

    (@heateor)

    Hi,
    When New User Approve plugin is active and new user registers via social login, an account is created for that user but they cannot login to your website because approval of their account is still pending and they will be redirected to the login page of your website showing the message their account needs approval. In this case, Registration redirection option will not take effect.
    When admin has approved this user and they login to your website next time, Login redirection will take effect and user will be redirected according to the settings of the Login redirection option.
    So, when New User Approve plugin is active, Registration redirection will never take place.
    Let me know if there is a setting in the New User Approve plugin that allows to keep user status approved by default so a user will login to your website in first attempt via social login.

    Thread Starter delaitec

    (@delaitec)

    Hi @heateor, Thanks for you reply.

    I agree that it’s important to see instructions after registration, but forcing a redirect to the default login page is not the best option, I’ll explain why later on.

    You also asked if there is a way to register with access released:
    NO for login via Heateor, but this is beside the point,
    because I don’t want to redirect the user to my account page, I want to redirect to a custom instructions page, but never the default WordPress Login page.
    I’m gonna explain.

    There are 2 ways to login/register on the site:

    • 01 Using the default WordPress screen
    • 02 Using the screens of other plugins such as my Woocommerce account page or BBpress for example.

    The default behavior after conventional registration (without using the social network) with New User Approve active, is to keep the user on the screen where the login was performed.
    Where he will see the instructions.

    Now let’s talk about login via social network using Heateor.

    In this case after login you are redirecting the user to a standard wordpress login screen.

    But see that in many cases webmasters don’t want the user to know the default wordpress login link,
    So much so that we use another plugin like “Rename wp-login.php” to change the default login link (wp-login / wp-admin) for security reasons.

    That is, the way it is now, even if the webmaster changed the default login link to a secret one, after registering through Heateor the user is redirected and the secret login link is revealed.
    That’s why it’s important to keep Heateor’s redirect functions active.

    So the Webmaster can create a page with instructions after login via Heator + New User Approve and redirect the user to this page.

    Or even redirect to any other page, according to the strategy of each webmaster.

    Do you now understand the importance of giving the Webmaster the option to choose where to redirect?

    Do you think it’s possible to let us decide where to redirect now?

    Plugin Author Heateor Support

    (@heateor)

    To redirect to the page of your choice, you can add following code in the functions.php file of your active theme.

    function heateor_sl_login_page_redirect() {
    if ( isset( $_GET['heateor_ua'] ) ) {
    wp_redirect( 'URL' );
    die;
    }
    }
    add_action( 'init', 'heateor_sl_login_page_redirect' );

    Replace URL in the above mentioned code with the URL of the web page where you want to redirect new users instead of redirecting to the default login page of WordPress.

    >>>That is, the way it is now, even if the webmaster changed the default login link to a secret one, after registering through Heateor the user is redirected and the secret login link?is revealed.
    That’s why it’s important to keep Heateor’s redirect functions active.

    As I mentioned in the previous reply, social login redirection option works when a user logs into your site successfully. When New User Approve plugin is active, user cannot login to your website until you approve them.

    Thread Starter delaitec

    (@delaitec)

    Thanks,

    Worked perfectly.

    I wish you a great weekend.

    Plugin Author Heateor Support

    (@heateor)

    You’re welcome

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Heateor redirects to wrong location after registration, whith NUA activeed’ is closed to new replies.