Forum Replies Created

Viewing 15 replies - 196 through 210 (of 574 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hey @leifharmsen

    Just wanted to say I haven’t forgotten about you! Life’s been busy for the last week for a couple of personal reasons landing at once.

    Am determined to look at this for you this weekend and will try my best.

    Sincerely sorry for the delay as I know you’re keen to crack on. Hoping things settle down at some point over the weekend and I’ve tried to block some time.

    Apologies again and I’ll keep you posted

    Plugin Author tbenyon

    (@tbenyon)

    Hey Leif,

    Just wanted to say thanks for the beers!

    If you’re ever back in England down Brighton way let me know and we can toast your project properly!

    Just updating to say I haven’t forgotten about you and have seen your other thread but prob won’t be looking at this till the weekend but will at least update you on progress by end of Sunday.

    Will keep your posted 😊

    Plugin Author tbenyon

    (@tbenyon)

    Hey @kevinxie,

    Just wanted to say I really appreciate you taking the time to write a review.

    Thanks for the positive comments.

    Made my day 😊

    Plugin Author tbenyon

    (@tbenyon)

    Hey @leifharmsen,

    Agreed – could definitely be an add on for the future. I keep toying with the idea of investing a bit more in the plugin and creating a ‘Pro’ paid for version but the legwork in setting that all up is hard to justify.

    Thanks for your positive attitude and your comments. It’s always great to hear another perspective.

    For now I will plod along with the hook for you and I’ll write you some Pseudocode to help you get started with adding the hook to your setup.

    I’ll try my best to keep you posted but feel free to check in with me in a week or so if you haven’t heard from me.

    Thanks,

    Tom 🙂

    Plugin Author tbenyon

    (@tbenyon)

    Hey @leifharmsen,

    I’m glad the plugin will be useful for you. 🙂

    I could add a hook in that occurs after the plugins base exclusion system where you can add additional logic.

    It would pass you all the fields from the user record in the external database so that you could return true if you wanted them excluded and false if you didn’t.

    This way it caters for future peoples problems that want different logic and allowed you to have complete control.

    Let me know your thoughts,

    Tom

    Plugin Author tbenyon

    (@tbenyon)

    Hey @drblackerror,

    Really appreciate you taking the time to write a review 🙂

    Thanks a lot,

    Tom 🙂

    Plugin Author tbenyon

    (@tbenyon)

    Hey @drblackerror,

    That’s awesome!

    If it all works I’d be grateful if you could write a review or even buy me a beer.

    Thanks again,

    Tom 🙂

    Plugin Author tbenyon

    (@tbenyon)

    Hey @drblackerror,

    This is actually the default behaviour of the plugin. Every time the user logs in they get their credentials checked against the current password in the external database.

    The only time this doesn’t happen is if you’ve ticked migration mode.

    This will then check to see if the user already exists in the WordPress database, and if they do, will use the details stored there.

    Can you check if this is checked for me and let me know if this solves your problem 🙂

    Thanks,

    Tom 🙂

    Plugin Author tbenyon

    (@tbenyon)

    This is the opposite of what the plugin achieves I’m afraid so no it doesn’t support that.

    It would be relatively easy job for a developer to pick up if you can find one though.

    I think I’ve answered your question so I’ll mark this as resolved.

    If you have any more questions about the plugin please don’t hesitate to get back in contact 🙂

    Plugin Author tbenyon

    (@tbenyon)

    Hey @yigitkeremoktay,

    The External Login plugin allows users to login to WordPress with credentials stored in an external database.

    It creates users in WordPress when they are authenticated with the external database.

    I’m not sure what you mean exactly, does this answer your question?

    Plugin Author tbenyon

    (@tbenyon)

    Hey @julian45123,

    This is very possible with the plugin, but as you mention, with the unique implementation of password hashing you’ll need to the the exlog_hook_filter_authenticate_hash hook to write your own check.

    I can’t do the development work for you to translate the JS code into PHP but I’m sure there are plenty of developers out there who would do this paid work for you if you don’t have time to research and implement it yourself.

    If you need any help with the plugin however, please don’t hesitate to get back in contact.

    Kind regards,

    Tom 🙂

    Plugin Author tbenyon

    (@tbenyon)

    Hey @goerg1980,

    Apologies for the delayed response. I actually wrote you a response midweek but having come back to check in I see that I never sent it?! Will write again now . . .

    If the fields that you require are in the same table on the external database, there is a hook that I’ve added which will help achieve what you are looking for.

    There’s some information in the FAQ on the available hooks but I’ll write you some basic pseudo code to get you going 🙂

    
    function my_function_to_do_something_after_authentication($wp_user, $exlog_user_data) {
    
      $updated = update_user_meta( $wp_user->ID, 'client_pet_name', $exlog_user_data['pets_name'] );
    
      // Checking if added ok
      if ($updated) {
        error_log('Additional field added');
      } else {
        error_log('Unable to add additional field');
      }
    }
    
    add_action('exlog_hook_action_authenticated', 'my_function_to_do_something_after_authentication', 10, 2);
    

    Not tested but in theory this would get information stored in your external database under the field ‘pets_name’ and would store it in the WordPress meta value ‘client_pet_name’.

    Let me know if you have any questions and apologies again for the delay 🙂

    Thanks,

    Tom

    Plugin Author tbenyon

    (@tbenyon)

    Thanks for taking the time to write a review. It’s really appreciated 😊

    Plugin Author tbenyon

    (@tbenyon)

    Hey @lvelve,

    In most cases the plugin, by default, assumes that you are using the external database as the centre of truth and after each login you we should update WordPress with any setting that may have changed in the external db. This includes:

    • name
    • password
    • email
    • roles
    • etc.

    There is a migration mode option that will only take this information on initial login. Then, if the user already exists you just login with their WordPress user and nothing gets updated again.

    Of course another solution is to put the roles that you require for the user into the external database and mage roles there.

    Does this meet your needs or do you need certain information to keep being updated and just roles to be referenced by WordPress? If this is the case, there is a hook that should help you achieve this, which I can write you some pseudocode for.

    Thanks,

    Tom

    Plugin Author tbenyon

    (@tbenyon)

    Hey @fnforestrycouncil,

    My first thought is that this is incredibly insecure as you’ve likely thought of this but if you are allowing access to ANY personal information in the WordPress platform I would definitely reconsider.

    You may well have another userflow or reasoning so assuming you’ve thought about the security implications, yes this would be possible. The only thing you’d have to do is modify the label on the WordPress login page so that the username would just say Name and the password would say E-mail. This is relatively straight forward but obviously not something this plugin would handle.

    Then in the settings for this plugin, when you were doing the table mappings, you would map the username field to the name field in your external database and the password field to the e-mail field in your external database.

    Does this answer your question?

    Thanks,

    Tom 🙂

Viewing 15 replies - 196 through 210 (of 574 total)