question

pixeljump avatar image
pixeljump asked

AddUsernamePasswordRequest without email?

I'd really prefer to not gather players emails... Can I still use this method to link usernames to an anonymous account without gathering email?

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

If you check the API reference AddUsernamePassword, the email address field is required too. So we can’t keep the email address empty. But this field does not have to be a true email address. A possible workaround is filling it with a specific fake email address generated by code for every player.

1 comment
10 |1200

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

pixeljump avatar image pixeljump commented ·

This is such an obvious answer which didn't even occur to me. Thank you.

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.