When associating my account, which I logged in with a custom ID, with AddUsernamePassword, there is a very interesting email parameter bug. For example, my address is xxxxx@gmail.com, it registers without any problem. xxxxx1@gmail.com is also accepted without any problem. However, if there is a dot in the email address like xx.xxx@gmail.com, it gives an "Invalid Input Parameters" error.
If I use the RegisterPlayFabUser method, it accepts my email even if it is xx.xxx@gmail.com. This should also be the case in AddUsernamePassword.
The paramaters are all string.
I tested the code as follows: public void LinkAccountWithEmail(string email, string password) { string username = GetUsernameFromEmail(email); Debug.Log("Email type: " + email.GetType() + ", value: " + email); Debug.Log("Password type: " + password.GetType() + ", value: " + password); Debug.Log("Username type: " + username.GetType() + ", value: " + username); var linkRequest = new AddUsernamePasswordRequest { Email = email, Password = password, Username = username };
PlayFabClientAPI.AddUsernamePassword(linkRequest, result =>
{
PlayerManager.instance.SetSections();
LoginUser(email, password);
}, error => {
uiManager.ShowText(uiManager.ErrorText, error.ErrorMessage);
});
}