Reputation: 11
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
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