我正在尝试确保在通过Parse登录我的应用之前已验证用户的电子邮件。出于某种原因,应该成为Parse User对象一部分的emailVerified
布尔值无法解析。我得到了error: cannot find symbol variable emailVerified
。我在这里做错了什么?
/* send data to Parse.com for verification */
ParseUser.logInInBackground(usernametxt, passwordtxt,
new LogInCallback() {
public void done(ParseUser user, ParseException e) {
if (user != null) {
if(user.emailVerified == true) {
/* if user exists and is authenticated, notify user */
Toast toast = Toast.makeText(getApplicationContext(),
"Successfully Logged In", Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();
finish();
}
}