Change the way that Login name is configured.
This commit is contained in:
parent
e970abcae9
commit
3c1cbff0e0
1 changed files with 5 additions and 7 deletions
|
@ -32,13 +32,11 @@ public class User extends BaseTemplateModel {
|
|||
return "";
|
||||
}
|
||||
|
||||
String firstName = currentUser.getFirstName();
|
||||
String lastName = currentUser.getLastName();
|
||||
if (firstName.isEmpty() && lastName.isEmpty()) {
|
||||
return currentUser.getEmailAddress();
|
||||
}
|
||||
|
||||
return firstName + " " + lastName;
|
||||
if (currentUser.getFirstName().isEmpty()) {
|
||||
return currentUser.getEmailAddress();
|
||||
}
|
||||
|
||||
return currentUser.getFirstName();
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue