Asad Jamal Malik
Asad Jamal Malik

Reputation: 30

Use PFUser on Parse without a Username

I'm building an app where emails are supposed to be the main identifiers. I don't want my users to have a username at all. I'm using Parse for backend and want to use the PFUser class for user signups etc. It seems like PFUser requires a username. Is there anyway to use PFUser without using username?

Upvotes: 0

Views: 855

Answers (2)

Long Sun
Long Sun

Reputation: 21

You can set emailAsUsername to true in signUpView as following:

signUpViewController.signUpView.emailAsUsername = true

Upvotes: 2

Jacob
Jacob

Reputation: 2338

I am in the same situation as you, but what I do is just set the email address my user enters for the username field. Now they can just login with their email address :)

Upvotes: 1

Related Questions