Hey @jorgeviejo,
Apologies for the delayed response.
I’m not sure I fully understand your requirement but there is a ‘migration’ mode setting which may achieve what you are looking for.
So the normal flow of the plugin is that when a username and password are entered on the login screen, the external database is queried. If the connection to the external database succeeds and the username exists in the external database then the user will be authenticated against that password hash.
If the user does not exist, it will look to see if there is a local user in WordPress and log the user in with that username and password. (You can disable using the WordPress data as a fallback using ‘disable local login’ but I don’t think this is what you’re looking for).
Now, there is another setting which is migration mode. Essentially it checks to see if a user with the username exists in the local WordPress install first and tries to login with that user. If not, it then looks to the external database to see if a user exists, and their password is valid and then creates the user in the WordPress database (which would then be used for future logins).
It is important to note that the plugin does not currently support syncing to the external database. In other words, if you change the password in WordPress it will not update the password in your external database.
I think I’ve answered your question so I’m going to mark this as resolved, however if you have any more question please don’t hesitate to post back here and I’ll be happy to help ??
Thanks,
Tom