user.displayName = config.getString(USER, username, DISPLAYNAME);\r
user.emailAddress = config.getString(USER, username, EMAILADDRESS);\r
user.accountType = AccountType.fromString(config.getString(USER, username, ACCOUNTTYPE));\r
- if (Constants.EXTERNAL_ACCOUNT.equals(user.password) && user.accountType.isLocal()) {\r
- user.accountType = AccountType.EXTERNAL;\r
- }\r
user.disabled = config.getBoolean(USER, username, DISABLED, false);\r
user.organizationalUnit = config.getString(USER, username, ORGANIZATIONALUNIT);\r
user.organization = config.getString(USER, username, ORGANIZATION);\r
}\r
\r
public static enum AccountType {\r
- LOCAL, EXTERNAL, CONTAINER, LDAP, REDMINE, SALESFORCE, WINDOWS, PAM, HTPASSWD, HTTPHEADER;\r
+ LOCAL, CONTAINER, LDAP, REDMINE, SALESFORCE, WINDOWS, PAM, HTPASSWD, HTTPHEADER;\r
\r
public static AccountType fromString(String value) {\r
for (AccountType type : AccountType.values()) {\r