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 "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
String firstName = currentUser.getFirstName();
|
if (currentUser.getFirstName().isEmpty()) {
|
||||||
String lastName = currentUser.getLastName();
|
|
||||||
if (firstName.isEmpty() && lastName.isEmpty()) {
|
|
||||||
return currentUser.getEmailAddress();
|
return currentUser.getEmailAddress();
|
||||||
}
|
}
|
||||||
|
|
||||||
return firstName + " " + lastName;
|
return currentUser.getFirstName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue