Ralf Wickum
Ralf Wickum

Reputation: 3270

Check in code if email in ParseUser was verified or not?

I use parse.com as a backend service for my app. Therefore I wrote a signup/login section to my app, where : + I can enter a new user-email + password + and logout and login over and over with those credentials.

Up to here, everything works very fine. New added users-emails get a verification request from parse.com. And they are marked with a boolean emailVeryfied = true if the activation link was clicked.

But how would I notice that in my Android app? The ParseUser object does not have a

boolean isVerified = ParseUser.isEmailVerfied() object??

Upvotes: 0

Views: 571

Answers (1)

Bhawna Raheja
Bhawna Raheja

Reputation: 619

ParseUser does not have method to check if email is verified or not but you can fetch this value by giving the key name in get method. Use this code:

 ParseUser currentUser = ParseUser.getCurrentUser();
 currentUser.get("emailVerified");

Upvotes: 3

Related Questions