question

tourtellotronald2020 avatar image
tourtellotronald2020 asked

How to get email address given player username?

For password recovery I would like to not have users need to type in their email address, since they normally are logging in with username and password. So i need to be able to send an email to the email address associated with that username, but GetAccountInfo requires the user to be logged in, which obviously they are not in this case.

Player Data
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

·
Gosen Gao avatar image
Gosen Gao answered

You can implement an Azure Function to call Admin API GetUserAccountInfo to get the user’s Email Address by passing the username. It doesn't require the player to be logged in to call, it requires a Secret Key. Then you can send a password recovery email to that Email Address.

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.