Michael Atif Maurice
Michael Atif Maurice

Reputation: 11

Email verification for ios app registration using parse

How and where can i put an if function in which it tests if the user's email is verified or no, if verified login the user, if not show an error? thank you

Upvotes: 0

Views: 559

Answers (1)

Michael Atif Maurice
Michael Atif Maurice

Reputation: 11

Finally found a solution:

if(PFUser.currentUser()["emailVerified"].isEqual(1))    
    {
    //let the user login
    }
else
    {
    //don't let the user login
    }

Upvotes: 1

Related Questions