External Database Authentication Reloaded
problem with 'authenticate' filter (3 posts)

  1. schmolluck
    Posted 1 year ago #


    Before the login, I have to perform a check of the username. I try it with the authenticate filter. But if the plugin is enable, the parameter $username is null.

    How can I intercept the the authentication to check the username?


  2. Joshua Parker
    Plugin Author

    Posted 1 year ago #

    I am not sure I understand.

  3. schmolluck
    Posted 1 year ago #

    My goal was to add a filter as following:

    add_filter( 'authenticate', 'myplugin_auth_signon', 30, 3 );
    function myplugin_auth_signon( $user, $username, $password ) {
         return $user;

    In this case the parameter $username is always null. I analyzed the code of plugin 'external-db-auth-reloaded' and I see that the parameter is set to null.

    I solved the problem. with 'wp_authenticate_user'. In this cas I have the username.

    add_filter( 'wp_authenticate_user', 'checkCodeFilter', 10, 2);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • External Database Authentication Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.