Dear all,
I must create new post for this topic because this issue is very important for game/ app development. Many users can "forget the passwords" and they want to reset it by email. If this issue cannot be solved then all functions of Playfab that I am developing on my app are not meaningful for me. :( I have to use other server for my app.
Firstly, I follow this tutorial to make the reset password function in my app.
I summarize the process as below:
- User click on "Reset password" button on the app.
- The confirmation email is sent to user's contact email that they signed up.
- User clicks the "confirmationURL" in the email.
- The app can detect the user clicks or not the "confirmationURL" to verify.
- User types the new password and request to server to reset their password.
But the first problem is that Playfab API only supports the reset function by using AdminAPI or ServerAPI and without Client API.
And after the discussion in here:
Sarah Zhang helped me to store the Token in Player Internal Data by the auth_token_validated event and recommend me to use the AdminAPI or ServerAPI to call Reset Password function.
And after the discussion in here:
Citrus Yan helped me to create the Azure function to read the Token from Player Internal Data and call the reset password function by using Playfab Admin API.
However, this solution only works when users login already, it means that they can "change password", not "forgot password" function as I wish. Because the problem is that we cannot execute the cloud script function without login. The function requires users to login first.
The solution is that users can type the Token value and call Azure function directly, but it is hard to get the Token for user's typing because they can open the "URL confirmation" in their email by using email app or web browser...
So could you have any suggestion for me to solve this issue?
I have some ideas, but I don't know that it can do or not.
- Could we get the Token from Player Internal Data in Azure function without the login from users?
- Could we execute the Azure function by using Cloud script? If yes, then we can call the Azure function to reset the password from Cloud script.
- Could we get the Playfab ID from the contact email using Admin API or Server API from Azure function?
Again, thank you so much to teams who support me.
Best regards.