tbenyon
Forum Replies Created
-
Forum: Plugins
In reply to: [External Login] Redirection after loginHey @magikweb,
This update is now deployed – let me know if this works for you.
If it’s looking good your end, I’d be grateful if you could write a review or buy me a beer π
Thanks,
Tom
π
Forum: Plugins
In reply to: [External Login] Support for SQL Server DBHey @tomtom7, @fbosito, @bartekryt and @jjepson,
This update is now live and thus I’m going to mark this as resolved.
If any of you haven’t already, and don’t mind, I’d be grateful if you could write a review or buy me a beer π
It’s been a pleasure working with you all!
Please let me know if you have any further issues.
Thanks,
Tom
π
Forum: Plugins
In reply to: [External Login] Adding SaltHey @wburling1,
The field is βRegisteredβ and when user is authenticated, I want to change it to βYesβ.
This link should help you:
https://codex.wordpress.org/Class_Reference/wpdb#UPDATE_rows// A query of your choice $rows = $db_data["db_instance"]->update( esc_sql($db_data["dbstructure_table"]), array('Registered' => 'Yes'), array( esc_sql($db_data["dbstructure_username"]) => esc_sql($exlog_user_data['user_login']) ) ); // Checking if the user was deleted if ($rows == 0) { error_log('User was not found or is already registered.'); elseif($rows) { error_log('User Successfully update from external database'); } else { error_log('Error updating user from external database'); }Above is just pseudocode to help you. I have not tested this as this is outside the scope of the plugin and this support. If this does not work for you and you are unable to debug it yourself you should find a developer to pay to support you with this.
my customer does not want people to register in wordpress unless they are the in the external database.
The plugin does not block user registration from systems outside of external login but you should be able to find how to do this by Googling. This was the first link I found:
https://www.competethemes.com/blog/disable-user-registration-wordpress/when I try to log in with a user that is Inactive in the external database and it allowed that user to log in and created a user in WP
I will spend some time testing this with a local example to see if this feature is broken in anyway but this will take some more time.
Forum: Plugins
In reply to: [External Login] Adding SaltWhat field are you trying to change in the external database and what are you trying to change it to?
Forum: Plugins
In reply to: [External Login] Adding SaltAt the bottom of the βHash Typeβ setting dropdown is the option “None”.
Forum: Plugins
In reply to: [External Login] Support for SQL Server DBHey @tomtom7,
I’m ready to make this live when one of you confirms this is working. I thought I’d share a link to the code incase you wanted to validate it for me before I make it live.
@fbosito and @bartekryt may also be interested in this?
I think a lot of this was your original work @fbosito so thank you!
If you give me the thumbs up on this version I’ll deploy an update live.
https://github.com/tbenyon/wordpress_external_login_plugin/archive/master.zipThanks,
Tom
Forum: Plugins
In reply to: [External Login] Use only APIHey @doublesharp,
I’m presuming you’ve decided to go a different route so I’m going to close this ticket.
If you require more help though please message back in here and I’ll open it back up.
Thanks,
Tom π
Forum: Plugins
In reply to: [External Login] Adding SaltIt will always check the external database password using the “Hash Type” setting.
If it is set to ‘none’ it will assume the passwords are in plain text.
Forum: Plugins
In reply to: [External Login] What to write in roles section?Hey @metapost,
Haven’t heard back from you so presume this is resolved and am thus closing the ticket.
If this is not correct, get back in contact and I’ll continue to support you π
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] Redirection after loginCool. Iβll try and get it deployed this weekend.
Feel free to chase me π
Forum: Plugins
In reply to: [External Login] Redirection after loginHey @magikweb,
Really sorry about the long delay. Life’s been busy.
The good news is that I’ve found the problem and I’m going to add a feature in that will handle the work for you.
It’s not an issue with the plugin. Basically external domains are blocked by WordPress by default.
Can you confirm you’re still interested in this feature and I’ll prioritise getting it into the plugin.
Thanks for your patience,
Tom
Forum: Plugins
In reply to: [External Login] Support for SQL Server DBHey @jjepson,
I’ve made some modifications to your pull request and moved it into master.
Please could you test master and confirm that this is all working before I deploy an updated version of the plugin.
Once this is done, it’d be great to get feedback from you @tomtom7 to confirm that the plugin update is working for you.
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] Adding SaltHey @wburling1,
I can see the issue!
You simply need to check the box that says ‘Enable External Login’.
This is here so that you don’t lock yourself out of the admin area while you’re making sure the test works.
Ticking this activates the plugin.
Let me know if this works. π
Thanks,
Tom
Forum: Plugins
In reply to: [External Login] error on activate wp_localize_script was called incorrectlyHey @charlieagain,
I really appreciate you taking the time to flag this issue.
I’ve removed the line that causes this from the plugin code and this change will be in the next release.
Really appreciate the feedback!
I’ll mark this as resolved as it is in the code base but if you have any further issues please don’t hesitate to get back in contact.
If you get a change I’d be really grateful for a review π
https://wordpress.org/plugins/external-login/#reviews
Thanks Charlie,Tom
Forum: Plugins
In reply to: [External Login] Custom User FieldsHey @ejbrewer,
It doesn’t at the moment but this is possible.
There’s two ways this could be handled and I’m not sure which one is the best approach.
1) Integrate in the admin area
I could have a section where you could choose additional data that you want to fetch from the users table.
I could then just store this as meta data for the user in the WP database where the phone_number field would become exlog_phone_number.
2) I get the entire user row when I query to authenticate the user. I could add this information to the exlog_hook_action_authenticated hook that exists and you could handle storing the data you require yourself.
Option one will take weeks to implement (just because it’s a bigger job that’ll require me to book out some time to do) and option two could be completed this week.
What are your thoughts?
Tom