Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Juan Felipe Medrano · Oct 07, 2021 at 01:47 AM · Player DataAccount Management

How to prevent players from using wrong email

Is there a way to prevent players from registering an account with an email that is not theirs?

for example, let's say a player mistypes the email, but the wrongly written email actually exists, thus registering the account with the wrong email. how could i stop this from happening?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Oct 07, 2021 at 09:04 AM

PlayFab doesn’t provide a built-in method to verify the players’ login emails. One workaround to ensure the players use the real email is not to use the login emails and only adding the contact email addresses for players. Please follow this documentation – Using a Rule to Verify a Contact Email Address to set the rule to verify the players’ contact emails. Then you can follow the steps below to set up the clients’ login flow.

  1. Provide the UI for players to enter the username, email, and the password to register the account. Call the Client API RegisterPlayFabUser to register its username and password and call the Client API AddOrUpdateContactEmail to add its email as the player’s contact email.
  2. The rules you set up above will send an email to the player's contact email. Prompt players to check the confirmation email and provide a button, such as "verified", for them to click.
  3. When the button is clicked, you can call the Client API GetPlayerProfile to check the verification status of users’ contact emails.
  4. If the response of API GetPlayerProfile shows the verification status is “verified”, tell the players the registration is complete. Otherwise, tell them, they need to enter the correct email addresses and verified it again.
  5. To modify the player’s contact email, you can call the Client API RemoveContactEmail to remove it and call the API AddOrUpdateContactEmail to add it again.

In this way, players can log in to your title using their username and password and their contact emails always need to be verified. The contact emails can be used to receive the email notifications and recovery the player account, you can check this documentation – Using Email Templates for more information.

Comment
Juan Felipe Medrano

People who like this

1 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Converting PlayFab Info to Player Object 2 Answers

    How to get a list of all master player accounts? 2 Answers

    Multiple accounts within the same title 2 Answers

    PHP SDK ClientSessionToken 1 Answer

    Unable to join a second title with same user 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges