Var emailAddress = // Set this to your own email Var password = "yourpassword" // Set this to your password Var username = "yourusername" // Set this to your username ![]() Var loginReq = new LoginWithCustomIDRequestĬustomId = "SomeCustomID", // replace with your own Custom IDĬreateAccount = true // otherwise this will create an account with that ID Make sure the email address associated with the player is one that you can access. We then add a contact email using AddOrUpdateContactEmail. In the following example, we log in a player, then add a username, password, and login email using AddUsernamePassword. Any time you send email to the player, it will go to the contact email address. Additionally, we add a contact email to the player using AddOrUpdateContactEmail.Ī contact email field on a player profile is different from the login email field on a player profile, even though they may both contain the same email address. We will add a username, password, and login email using AddUsernamePassword. Step 2 - Add username, password, login email, and contact email to a playerįor this next step, you will need an existing player account. Make a note of the ID of the Email Template as it will be used in Step 4. ![]() It will need to be a hosted web form that contains at very minimum a Password field, in order to make a ResetPassword API call later in this tutorial.Īfter filling the form out, select the SAVE EMAIL TEMPLATE button, and you will be redirected back to the page containing the list of your Email Templates showing. The Callback URL is the URL that PlayFab will redirect to after the player selects the confirmation URL link.In this case, it is injected into an anchor tag. The $ConfirmationUrl$ in the email body generates a customized URL that, when selected, tracks that a user has chosen the URL, and then issues a redirect to the Callback URL.At the minimum, the form must contain a Password field for the player to enter a new password. Callback URL: A callback URL to a password recovery form.Some email servers, like Gmail, will ignore this field and will send from the account set up with the SMTP server. This must be an email domain that the SMTP server enables you to send emails from. From Email Address: The email address you want to show in the From field in the email. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |