question

knight414 avatar image
knight414 asked

Message if email incorrect?

Hi,

I was following a tutorial to reset password by email.

He post this script, and I want to add a function tell player if this email is correct/exist or not?

    public void ResetPass()
    {
        var requestEmail = new SendAccountRecoveryEmailRequest
        {
            Email = Reset_email.text,
            TitleId = "BC6BF"
        };
        PlayFabClientAPI.SendAccountRecoveryEmail(requestEmail, RestPassMessage, ErrorMess);
    }

    void RestPassMessage(SendAccountRecoveryEmailResult result)
    {
        RestMessage.text = "Password reset";
    }


    void ErrorMess(PlayFabError error)
    {


    }

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

Since you want to reset the password by email, we suggest you following the documentation - Using Email Templates to Send an Account Recovery Email .To prevent players from using wrong email, you can follow this documentation -Using a Rule to Verify a Contact Email Address to set the rule to verify the player’s contact emails. And the contact email address is non-unique.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.