tbenyon
Forum Replies Created
-
Forum: Plugins
In reply to: [External Login] SHA1 with salt in password fieldHey @fltdarryl ,
This is quite a custom hashing system. As far as Iβm aware not many others will use this.
For this reason, I am hesitant to code an option into the code for your specific situation as the plugin would get bloated if I did this for every custom setup.
What I could do is add a hook in. This would allow you to add your own authentication for this hash in to the functions.php file. Iβd be happy to give you some sample code to add there.
Whatβs your thoughts on this?
Forum: Plugins
In reply to: [External Login] Error in when setting User-Roles field (in multisite)Hey @yahyabassa,
Really glad you’ve got it all worked out π
Strange about that image not loading. It seems to be loading in two of my sites I’ve checked.
I would be SUPER grateful if you would take a moment to write me a review.
https://wordpress.org/plugins/external-login/#reviewsThanks,
Tom π
Forum: Plugins
In reply to: [External Login] Error in when setting User-Roles field (in multisite)Hey @yahyabassa,
Linking roles from MySQL
I can’t replicate this πI’m going to ask for you to give me more help to figure this out as at the moment I have nothing to go on.
Ideas to try:
- Check that your plugins are all up to date and WordPress is too
- Try a different browser
- Disable all other plugins and see if the issue persists
- Look in the dev tools in the browser to see if any errors get logged and report them back to me
- Look in the PHP error logs and see if any error are getting reported and pass them on to me
- Try updating your version of PHP
Creating a Cookie
This is a bit out of the scope of support for this plugin as it is separate functionality but I wanted to help you out.I think the code is pretty readable but if you have questions about it let me know. The data is being stored in the cookie as a JSON string but you can modify as you like.
function benyon_user_login_cookie_store($user_login) { $current_user_id = get_user_by('login', $user_login)->ID; $user_meta = get_userdata($current_user_id); $user_roles = $user_meta->roles; $user_data = array( "user_id" => $current_user_id, "user_roles" => $user_roles ); $cookie_name = "WP_USER"; $cookie_value = json_encode($user_data); setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day } add_action('wp_login', 'benyon_user_login_cookie_store');Tom
Me too. Will have a closer look at this! Will update when I get round to experiment.
Regarding your first paragraph – I think we’re agreed on the way forward for now.
Not sure what you meant by “then used the encrypted string in the variable definition”. Not quite sure how you mean by this flow.
Forum: Plugins
In reply to: [External Login] Automatically create accountsHey Daniel (@danfelbm),
It doesn’t automatically create the user in the WordPress database when the user is created in the external system. When that user first logs into WordPress, their user is created.
Does this achieve what you need?
Thanks,
Tom
p.s. In regard to offering additional support, even though some people have found me on Facebook or Linked In, I am not allowed to offer my services on here. This is because of WordPress’ terms of service.
Forum: Plugins
In reply to: [External Login] Error in when setting User-Roles field (in multisite)Hey @yahyabassa,
Just wanted to acknowledge I’ve seen this and say I’m going to try and look at this this weekend for you.
In the meantime can you confirm the version number of the plugin you’ve got installed?
Thanks,
Tom
Hey @ccsimmons,
I really appreciate you taking the time to give feedback.
In my testing I was only able to get the 500 error on a server fail, not for not populating the database however I’ve added a ticket in to my board to try and replicate this.
Not sure you’re that interested but you can see in this file that I am giving a different result at times when no data is returned:
https://github.com/tbenyon/wordpress_external_login_plugin/blob/develop/js/exlog_test.jsAs I said, I will investigate this further to see if I can replicate and will leave this ticket open for now.
Really appreciate you taking the time to write feedback π
Hey @ccsimmons,
This is a good idea.
Added security in this way can be attained by defining the password in the code like so:
define('EXTERNAL_LOGIN_OPTION_DB_PASSWORD', 'root');An even better approach in my opinion is to set it with an environment variable like so:
define('EXTERNAL_LOGIN_OPTION_DB_PASSWORD', getenv('MY_EXLOG_DB_PASSWORD_ENVIRONMENT_VARIABLE'));If I were to implement your suggestion, I might make it so that you can’t see the password again after it was set rather than being able uncover it. This would add additional security as other users would not be able to uncover it. What’s your opinion on that?
Forum: Plugins
In reply to: [External Login] Password resettingThank you so much π
Will have a look at those today hopefully π
Forum: Plugins
In reply to: [External Login] Error in when setting User-Roles field (in multisite)Hey @yahyabassa,
I’m glad you’re finding the plugin useful π
Linking roles from MySQL
What exactly is the issue?
Are the roles not getting created in WordPress but the rest of the user is?
Could you let me know what settings you have activated?Creating a Cookie
What exactly do you want to do and what do you want to store in the cookie?
Do you want to create the cookie when someone logs in and just store the user ID and then delete it when they log out?Forum: Reviews
In reply to: [External Login] great supportReally appreciate you taking the time to review @xprojectsx π
Forum: Plugins
In reply to: [External Login] Password resettingHey Chris (@ccsimmons),
Great that thatβs worked!!! π
Iβd be SUPER grateful if you could take a moment to write me a review:
https://wordpress.org/support/plugin/external-login/reviews/#new-post
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] Password resettingHey Chris (@ccsimmons),
I couldn’t reproduce the issue because the e-mails don’t come through for me. Not sure why.
However, I have put in a fix that I predict will solve it for you!
Could you backup your site and try updating the plugin and see if it has fixed the issue?
Thanks,
Tom π
Forum: Plugins
In reply to: [External Login] Password resettingHey Chris (@ccsimmons),
Just saw the money come through – really grateful thank you.
I can’t promise but I should have some time this weekend to look into this so if it’s a quickie I’ll try and get it done.
Will message you back either way. If you haven’t heard from me by Monday, feel free to chase me!
Thanks again,
Tom