I wanted to find out if the following is possible. I currently have 2 applications for 2 different projects but need to syncronize the login process across both.
The first application was using the “passwordless” user connection, so all users have this connection type.
The second application is using the “username-password” user connection.
I want to update the “passwordless” users to the “username-password” connection. I thought this was possible by allowing the user to click forgot password but the user is not found due to the “username-password” connection type.
Is there a way to migrate all “passwordless” users to “username-password” connection type?
Reading through your use-case, I would say that what you are encountering is expected behaviour when it comes to the Passwordless users vs the Username-Password users. These are essentially two different user databases and when someone from the Passwordless connection attempts to reset their password, the system is looking for a match within the Username-Pw connection, which is not found.
My recommendation to unify the two databases would be to export the users from the Passwordless Connection, then import them into the Un-PW Connection, at which point the users will be able to reset their password and gain access. You can utilize the User Import / Export Extension to complete the migration from one Database to the other one, or use the Management API endpoints to complete the process, namely the Create export users job and Create import users job endpoints.
You can either setup a password for the users before importing them, or complete the import process with them having no password, in which case they will need to set up their own. Just wanted to let you know that both options should be valid and working.
We recommend if possible to test this in a development environment or with a limited number of users first before making the change in production, just to observe the process and ensure it is working as expected.