如何从 android 中的解析用户获取 emailVerified?
How can I get emailVerified from parse user in android?
我很困惑;如何从 parse.com USER 数据库中获取布尔值?
我想要实现的是:
if(The user who is trying to log in right now has not verified his email){
Toast.makeText(getApplicationContext(),"Verify your email please",Toast.LENGTH_SHORT).show();
}
所以,基本上,我的问题是:如何获取用户的布尔值?
您可以注意到 Parse 中的“_User”class 有一个布尔列 "emailVerified"。您根据需要读取 "emailVerified" 的值。
ParseUser user = ParseUser.getCurrentUser();
Boolean isVerified = user.getBoolean("emailVerified");
我很困惑;如何从 parse.com USER 数据库中获取布尔值? 我想要实现的是:
if(The user who is trying to log in right now has not verified his email){
Toast.makeText(getApplicationContext(),"Verify your email please",Toast.LENGTH_SHORT).show();
}
所以,基本上,我的问题是:如何获取用户的布尔值?
您可以注意到 Parse 中的“_User”class 有一个布尔列 "emailVerified"。您根据需要读取 "emailVerified" 的值。
ParseUser user = ParseUser.getCurrentUser();
Boolean isVerified = user.getBoolean("emailVerified");