Your cart is currently empty!
Affiliate Login page fails
—
by
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
Posted in Affiliates by Username
Comments
3 responses to “Affiliate Login page fails”
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
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?
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