Hey @sintwar,
Thanks for getting in touch.
I have just run through a flow to ensure this feature is working. Here’s what I did:
- Logged in as USERA who does not exist in any database
- Tested that the login failed
- Added the user to the external database
- Checked that the user was logged in and the user was created in the WordPress DB
- Made sure disable external login was not activated
- Deleted user from external database
- Logged in as user
- Checked I was authenticated
- Activated disable local login
- Logged in again and was not authorised as expected
I imagine this is either some other form of caching in your infrastructure OR you have another plugin that is maybe acting on the WordPress authenticate hash to authenticate users (unlikely).
My suggestions are:
- Check you do not have a level of caching on reading from your WordPress database
- Set yourself back to the default theme and deactivate all other plugins to ensure the flow is not getting effected
If you’ve checked these things and you’re still seeing issues I’ll advise you with some logging code snippets to add into the plugin so that I can help you diagnose the problem.
Let me know how you get on 🙂
Thanks,
Tom
Looks like I found the issue. Seems a plugin I was using to style the login “LoginPress” was interfering somehow. It’s working great now that LoginPress is disabled!
Hey @sintwar,
That’s great news 😊
If it all works I’d be grateful if you could write a review or even buy me a beer.
Good luck with your project 😊
Tom
Hey @sintwar,
That’s really cool of you. It’s really appreciated.
Have an awesome day 🙂
Tom