Fix open id.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.wisemapping.model;
|
||||
|
||||
public enum AuthenticationSchema
|
||||
{
|
||||
DATABASE(0),
|
||||
LDAP(1),
|
||||
OPENID(2);
|
||||
private final int schemaCode;
|
||||
|
||||
AuthenticationSchema(int schemaCode) {
|
||||
this.schemaCode = schemaCode;
|
||||
}
|
||||
|
||||
public int getSchemaCode() {
|
||||
return schemaCode;
|
||||
}
|
||||
}
|
||||
@@ -36,6 +36,7 @@ public class User
|
||||
private Calendar activationDate;
|
||||
private Set<String> tags = new HashSet<String>();
|
||||
private boolean allowSendEmail = false;
|
||||
private int schema;
|
||||
private String locale;
|
||||
|
||||
|
||||
@@ -114,4 +115,12 @@ public class User
|
||||
public void setLocale(@Nullable String locale) {
|
||||
this.locale = locale;
|
||||
}
|
||||
|
||||
public int getAutheticationCode() {
|
||||
return this.schema;
|
||||
}
|
||||
|
||||
public void setAuthenticationCode(int code) {
|
||||
this.schema = code;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user