• Resolved gareth7923

    (@gareth7923)


    Hello,

    I have a problem that I can’t solve. I would like to know how to use your plugin but not for the WP-ADMIN login page, but for the login page which is on my WordPress site.

    I use in my site a login form of a plugin called ultimate member.
    So my goal is to use your plugin so that when a subscriber tries to connect on this form, well that the data checks are done on an external data base.

    I absolutely need help!

    thank you.`

Viewing 1 replies (of 1 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hey @gareth7923,

    Apologies for the delayed response.

    I’ve had a quick look and this does get complicated and having two plugins modifying the authentication workflow is always going to have the potential for bugs going forward, even if you get it working now.

    This is because External Login and UM (Ultimate Member) both seem to hook into WordPress’ authentication filter. In UM:
    add_filter( 'authenticate', 'um_wp_form_errors_hook_ip_test', 10, 3 );
    add_filter( 'authenticate', 'um_wp_form_errors_hook_logincheck', 50, 3 );
    In External Login:
    add_filter('authenticate', 'exlog_auth', 10, 3);

    The problems start coming because:
    – The prioritisation between plugins can cause issues, both plugins hook in at a priority of 10 – which goes first?
    – If one changed their priority is that going to break functionality for other users?
    – External Login relies on disconnecting the standard WordPress tie in to this hook to prevent logging in with the local WordPress user in certain setting flows, it may also need to cancel login flows with this plugin – I’m not sure what it does when it filters.

    For this reason it becomes a very customised job. You would need to pay a developer to do this work for you. You would then also want to carefully monitor changes to either plugin to ensure no future releases cause future bugs.

    I’m happy to discuss adding additional hooks / actions that would help with this integration work if you have someone that could advise what would be useful.

    Essentially it would need to fire the exlog_auth function on filtering the front end login flow.

    I’m going to mark this as resolved as compatibility between plugins is outside of the scope of this support but I’m more than happy that you continue to ask questions and I’ll do my best to answer ??

    Thanks,

    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘connexion to form login’ is closed to new replies.