Moralis.User
class.username
: the username for the user (required)password
: the password for the user (required on signup)email
: the email address for the user (optional)Moralis.User.signUp(username, password)
**to create a new usersignUp
method, not thesave
method. New Moralis.User
's created with a username should always be created using thesignUp
method. Subsequent updates to a user can be done by callingsave
bcrypt
.Moralis.User
will work as normal. Weโll go over how this is handled in the reset password section.logIn
**methodusePost
.emailVerified
key to the Moralis.User
object. When a Moralis.User
โs email
is set or modified, emailVerified
is set to false
. Moralis
then emails the user a link which will set emailVerified
to true
.emailVerified
states to consider:true
- The user confirmed his or her email address by clicking on the link Moralis emailed them. Moralis.Users
can never have a true
value when the user account is first created.false
- The user did not confirm his/her email address by clicking the link Moralis emailed them. If emailVerified
is false
, consider calling fetch
on the Moralis.User
.undefined (missing)
- This Moralis.User
was created when email verification was not set up or Moralis.User
does not have an email when signing up.