question

Kim Strasser avatar image
Kim Strasser asked

Is it necessary that a player has a contact email address?

A player has created an account using LoginWithIOSDeviceID. Later the player has entered email(player11test@gmail.com), username and password with the API call AddUsernamePassword. Now the player has a PlayFab login email but he doesn't have a contact email in his account.

Is it necessary that the player has a contact email address if he wants to reset his password or is it possible to use the PlayFab login email address for the API call SendAccountRecoveryEmail?

Is it possible to automatically set the contact email address to the PlayFab login email address after the player has used the API calls AddUsernamePassword or RegisterPlayFabUser?

Could the player change his PlayFab login email address at a later moment with an API call or is this not possible?

What can I do if a player wants to change his contact email address? What API call should I use?

Account Management
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

·
Sarah Zhang avatar image
Sarah Zhang answered

>>> Is it necessary that the player has a contact email address if he wants to reset his password?

No, it isn’t necessary.

>>> Is it possible to use the PlayFab login email address for the API call SendAccountRecoveryEmail?

Yes, that is how it works.

>>> Is it possible to automatically set the contact email address to the PlayFab login email address after the player has used the API calls AddUsernamePassword or RegisterPlayFabUser?

No. When players call these two API. The email field they filled will be the PlayFab login email won’t be the contact email. The email field is required, so they have to fill it. The email that filled by players will be the login email, unless you filled it with the contact email, the contact email won’t be set to the login email.

>>> Could the player change his PlayFab login email address at a later moment with an API call or is this not possible?

No, players can’t change their login email with API we only can change it on the GameManager now.

>>> What can I do if a player wants to change his contact email address? What API call should I use?

Players can change or add their contact email with this API AddOrUpdateContactEmail, it only works for contact emails.

In addition, admin/client API SendAccountRecoveryEmail works for login email address only. Server API SendCustomAccountRecoveryEmail and SendEmailFromTemplate can work for contact emails.

2 comments
10 |1200

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

Kim Strasser avatar image Kim Strasser commented ·

Will the Server API SendCustomAccountRecoveryEmail and SendEmailFromTemplate work for contact email address and login email address or are these two Server APIs only for contact email address?

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Kim Strasser commented ·

Currently, they are only for contact email. You can follow this tutorial Using email templates to send an account recovery email.

0 Likes 0 ·

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.