ParseUser Unity SDK missing definition for Password

∥☆過路亽.° 提交于 2019-12-11 07:52:31

问题


I am trying to signup a new ParseUser using the Unity SDK (Parse 1.3.2). I follow the tutorial and use the code below to do the signup, however, I get an error:

'Parse.ParseUser' does not contain a definiton for 'Password'

Why does it recognize Username and Email, but not Password? It is driving me nuts...

My code:

var user = new ParseUser()
 {    
         Password= myPassword,
         Username = name,
         Email = "email@example.com"
 };        

 user.SignUpAsync(); 

回答1:


Use below code will do:

var user = new ParseUser();
user.setEmail(Email);
user.setUserName(..);
user.setPassword(..);


来源:https://stackoverflow.com/questions/27697651/parseuser-unity-sdk-missing-definition-for-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!