I have an problem. I am working on an unity project and here I used firebase database system. I want to add a reset password system but didn't find the documentation how to do with unity. If any one know the system please let me know. I will very glad to you.
CodePudding user response:
The documentation on sending a password reset email for Unity contains this code fragment:
string emailAddress = "[email protected]";
if (user != null) {
auth.SendPasswordResetEmailAsync(emailAddress).ContinueWith(task => {
if (task.IsCanceled) {
Debug.LogError("SendPasswordResetEmailAsync was canceled.");
return;
}
if (task.IsFaulted) {
Debug.LogError("SendPasswordResetEmailAsync encountered an error: " task.Exception);
return;
}
Debug.Log("Password reset email sent successfully.");
});
}