You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to signup a user with username and password only.
But, if I extend the ParseUser class, I need to pass three parameters i.e username, password and email.
I was able to achieve the functionality I want as follow:
Future_createUser() async {
var user =TestUser()..set('username', 'sky12')..set('password', '123456');
await user.save();
}
I was wondering if there is a better approach to accomplish this task by extending ParseUser class. Because it will enable me to take full advantages of already implement functionalities.
The text was updated successfully, but these errors were encountered:
I thought, setting an email is required in order to create a user on the parse server.
But it seems like it is optional, as creating a new user without an email works from the dashboard.
I recommend you to extend your custom class on ParseUser and not on ParseObject.
In the constructor you can set email to null.
The only problem is, that this SDK does currently not support running the signUp() function without and email address due to this if-block. (login() works)
As a workaround you can either provide a dummy email (like [email protected]) or you create the new user first and login afterwards.
I would like to signup a user with
username
andpassword
only.But, if I extend the
ParseUser
class, I need to pass three parameters i.e username, password and email.I was able to achieve the functionality I want as follow:
I was wondering if there is a better approach to accomplish this task by extending
ParseUser
class. Because it will enable me to take full advantages of already implement functionalities.The text was updated successfully, but these errors were encountered: