question

brendan avatar image
brendan asked

LoginWithEmailRequest No CreateAccount Parameter?

sketchwork
started a topic on Thu, 13 August 2015 at 1:59 PM

Hi there,

I'm just wondering why there is no "CreateAccount" parameter when you are using the LoginWithEmailRequest api call.

What happens if the user types it in wrong will it just create a new user or return an error code? I was wondering because you do get a NewlyCreated parameter back from the result.

Thanks,

Justin

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

·
brendan avatar image
brendan answered

1 Comment
Brendan Vanous said on Fri, 14 August 2015 at 11:44 AM

Hi Justin,

Correct - there's no CreateAccount for LoginWithEmailAddress or LoginWithPlayFab (which is the original one we had, which takes the Username). The NewlyCreated parameter is only in the return as all the Login calls use a common return - it will always be false for those two calls. The intent is that RegisterPlayFabUser will be used to create accounts via Username and / or Email. In part, this is intended to help reduce the number of bogus account created via the typo scenario you mentioned - particularly for email addresses.

When asking for a user's Email for the first time, we would recommend following the standard of asking them to type it twice, to prevent errors - bear in mind that there's intentionally no "change email" API call, to help prevent issues with hijacked accounts, so there's no way for a user to easily change it if they do make a mistake. They would have to contact you to have it changed, and 1-on-1 support for your players can rapidly erode your resources (or ARPU, if you pay a third party for customer support).

Brendan

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.