Affiliate Login page fails

Hi,

We recently had to change or wp login page due to unwanted guests attempting to gain entry. Now, when an affiliate logs in via the affiliate-area/ , they get redirected to out new hidden login and they are denied entry. We are on siteground and use their software since the other wp security plugins simply didnt work for us.

Any help would be appreciated since our affiliates cant login to check their accounts

3 Responses to Affiliate Login page fails

  1. George September 22, 2021 at 6:00 pm #

    Hi Paul,

    Perhaps you could disable the redirects and then use something like this WP filter hook for redirects.
    https://developer.wordpress.org/reference/hooks/login_redirect/
    Even though I haven’t tried it mysel, it should do the trick and also let you include the conditional check I mentioned on my previous reply.

    Kind regards,
    George

  2. Paul Bratby September 22, 2021 at 1:41 pm #

    thanks, we tried several options and now we have had to disable the redirects which leaves our admin logins exposed. Is there no easy way for this given that normally the first thing you do with a wordpress is disable the generic wp-login or wp-admin url in favor of a a more discreet option. I’ve also has to disable our caching to get it to work. Both of our security plugins are on your list of possible conflicts. So what do you suggest?

  3. George September 22, 2021 at 12:26 pm #

    Hi Paul,

    Welcome back to our support forum.

    FYI, the issue you get is related to the redirect after login. The login form found in Affiliates Dashboard is using the standard WP form wp_login_form(…) and the redirect you currently use is also applied to that form.

    I would recommend you to check your current implementation and perhaps use a conditional check so that if the logged-in user is an affiliate, then redirect to Affiliates Dashboard. For this case you may use the plugin core function:
    affiliates_user_is_affiliate( $user_id )

    Please check my recommendation and let me know your findings.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share