I need to be able to "intercept" in a way the plain text password to clone the registered user from a D9 site over to a D7 site via API. Alternatively if anyone knows a way to just migrate a D9 encrypted password to a D7, that would be helpful as well.
I've tried using the hook presave but the password in the user object is still already encrypted and if I pass that over to a D7 site it would not work in D7.
The general thing I'm trying to accomplish is cloning a D9 user upon registration over to a D7 legacy site via an API endpoint on D7.
Any thoughts on how this can be accomplished? Appreciate any ideas. Thanks!