Change the way that Login name is configured.

This commit is contained in:
j2blake 2011-06-15 14:50:44 +00:00
parent e970abcae9
commit 3c1cbff0e0

View file

@ -32,13 +32,11 @@ public class User extends BaseTemplateModel {
return ""; return "";
} }
String firstName = currentUser.getFirstName(); if (currentUser.getFirstName().isEmpty()) {
String lastName = currentUser.getLastName(); return currentUser.getEmailAddress();
if (firstName.isEmpty() && lastName.isEmpty()) { }
return currentUser.getEmailAddress();
} return currentUser.getFirstName();
return firstName + " " + lastName;
} }
public String getFirstName() { public String getFirstName() {