question

pmattei0 avatar image
pmattei0 asked

Authentication success --> Username Input

Hello

Im tryng to understand that PlayFab engine and after somes hours I managed to create a script and that works =]

But I would that the PlayFab API make appears a request : username input. Just after the connexion success, do you know how is it possible ?

( https://api.playfab.com/docs/tutorials/landing-players/best-login )


Im also looking that remember the mail address only, if a button is checked, any suggest ?

Thank

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

If you're asking how to set the username and email address for the player after you've already created the player account, you can use https://api.playfab.com/documentation/client/method/AddUsernamePassword. Alternately, you could use the Title Display Name, and update that at any time with https://api.playfab.com/documentation/client/method/UpdateUserTitleDisplayName. Meanwhile, you can set or update the player's Contact Email Address with https://api.playfab.com/documentation/client/method/AddOrUpdateContactEmail. If those aren't what you're looking for, can you describe in more detail your scenario?

3 comments
10 |1200

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

pmattei0 avatar image pmattei0 commented ·

Thank you Brendan.

I would like that after the register done for the 1st time, a pop up appears which told you to set your username, only one time.

Can I do this or I need to go through Username&password ?

0 Likes 0 ·
brendan avatar image brendan pmattei0 commented ·

If you use Title Display Name, you can use the API call above (Update...) to do that. If you want it to be the Username for the player account, you would need to do that at account creation time (RegisterPlayFabUser) or using the AddUsernamePassword API (also above).

0 Likes 0 ·
pmattei0 avatar image pmattei0 commented ·

I think im starting to understand.

There was a variable with an ambiguous name in my script, ill try to set it up, thanks

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.