diff --git a/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java b/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java index faa254386bc..0b6aaf79e05 100644 --- a/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java +++ b/jans-auth-server/persistence-model/src/main/java/io/jans/as/persistence/model/GluuOrganization.java @@ -16,6 +16,8 @@ import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import org.apache.tika.utils.StringUtils; + import java.io.Serializable; /** @@ -89,13 +91,6 @@ public void setJsFaviconPath(String jsFaviconPath) { this.jsFaviconPath = jsFaviconPath; } - public String getOrganizationTitle() { - if (title == null || title.trim().equals("")) { - return "Gluu"; - } - return title; - } - public String getCountryName() { return countryName; } @@ -177,6 +172,9 @@ public void setThemeColor(String themeColor) { } public String getTitle() { + if (StringUtils.isBlank(title)) { + title = "Gluu"; + } return title; }