private static final String USER = "user";\r
\r
private static final String PASSWORD = "password";\r
+ \r
+ private static final String DISPLAYNAME = "displayName";\r
+ \r
+ private static final String EMAILADDRESS = "emailAddress";\r
\r
private static final String REPOSITORY = "repository";\r
\r
if (!StringUtils.isEmpty(model.password)) {\r
config.setString(USER, model.username, PASSWORD, model.password);\r
}\r
+ if (!StringUtils.isEmpty(model.displayName)) {\r
+ config.setString(USER, model.username, DISPLAYNAME, model.displayName);\r
+ }\r
+ if (!StringUtils.isEmpty(model.emailAddress)) {\r
+ config.setString(USER, model.username, EMAILADDRESS, model.emailAddress);\r
+ }\r
\r
// user roles\r
List<String> roles = new ArrayList<String>();\r
Set<String> usernames = config.getSubsections(USER);\r
for (String username : usernames) {\r
UserModel user = new UserModel(username.toLowerCase());\r
- user.password = config.getString(USER, username, PASSWORD);\r
+ user.password = config.getString(USER, username, PASSWORD); \r
+ user.displayName = config.getString(USER, username, DISPLAYNAME);\r
+ user.emailAddress = config.getString(USER, username, EMAILADDRESS);\r
\r
// user roles\r
Set<String> roles = new HashSet<String>(Arrays.asList(config.getStringList(\r