The user forgot the password, send to the phone to update is it possible?

the user forgot the password, send to the phone to update is it possible?

hi, how can i do password updates by sending a code to my phone? if the user has forgotten it. I have api set up to receive SMS and a call when requested, how can I use this so that the user can create a new password? the user is not in the database and I cannot update the user, what solutions do you know?