changed UserInfo.verified to UserInfo.emailVerified.

pull/105/merge
Amanda Anganes 2012-07-06 14:11:43 -04:00
parent 8fe132cb53
commit 50241e4da1
4 changed files with 9 additions and 9 deletions

View File

@ -47,7 +47,7 @@ public class DefaultUserInfo implements UserInfo {
private String picture;
private String website;
private String email;
private Boolean verified;
private Boolean emailVerified;
private String gender;
private String zoneinfo;
private String locale;
@ -212,15 +212,15 @@ public class DefaultUserInfo implements UserInfo {
*/
@Override
@Basic
public Boolean getVerified() {
return verified;
public Boolean getEmailVerified() {
return emailVerified;
}
/* (non-Javadoc)
* @see org.mitre.openid.connect.model.UserInfo#setVerified(java.lang.Boolean)
*/
@Override
public void setVerified(Boolean verified) {
this.verified = verified;
public void setEmailVerified(Boolean emailVerified) {
this.emailVerified = emailVerified;
}
/* (non-Javadoc)
* @see org.mitre.openid.connect.model.UserInfo#getGender()

View File

@ -126,12 +126,12 @@ public interface UserInfo {
* @return the verified
*/
@Basic
public abstract Boolean getVerified();
public abstract Boolean getEmailVerified();
/**
* @param verified the verified to set
*/
public abstract void setVerified(Boolean verified);
public abstract void setEmailVerified(Boolean emailVerified);
/**
* @return the gender

View File

@ -10,7 +10,7 @@ CREATE TABLE userinfo (
picture VARCHAR(256),
website VARCHAR(256),
email VARCHAR(256),
verified BOOLEAN,
emailVerified BOOLEAN,
gender VARCHAR(256),
zoneinfo VARCHAR(256),
locale VARCHAR(256),

View File

@ -93,7 +93,7 @@ public class JSONUserInfoView extends AbstractView{
if (scope.contains("email")) {
obj.addProperty("email", ui.getEmail());
obj.addProperty("verified", ui.getVerified());
obj.addProperty("email_verified", ui.getEmailVerified());
}
if (scope.contains("phone")) {