diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/UserProfileDTO.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/UserProfileDTO.java index e8952bee4c..5475fe2192 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/UserProfileDTO.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/UserProfileDTO.java @@ -1,5 +1,6 @@ package com.appsmith.server.dtos; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; import java.util.Set; @@ -17,6 +18,24 @@ public class UserProfileDTO { String gender; + @JsonProperty(value = "isAnonymous") + boolean isAnonymous; + + @JsonProperty(value = "isEnabled") + boolean isEnabled; + boolean isEmptyInstance = false; + public boolean isAccountNonExpired() { + return this.isEnabled; + } + + public boolean isAccountNonLocked() { + return this.isEnabled; + } + + public boolean isCredentialsNonExpired() { + return this.isEnabled; + } + } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java index 40a92ac545..281e46210c 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java @@ -865,6 +865,8 @@ public class UserServiceImpl extends BaseService i profile.setName(user.getName()); profile.setGender(user.getGender()); profile.setEmptyInstance(isUsersEmpty); + profile.setAnonymous(user.isAnonymous()); + profile.setEnabled(user.isEnabled()); return profile; }); diff --git a/deploy/fat_container/README.md b/deploy/fat_container/README.md index 0237b86da5..179aab96c5 100644 --- a/deploy/fat_container/README.md +++ b/deploy/fat_container/README.md @@ -101,4 +101,4 @@ In this UI, you can manage your application's process. You should stop applicati ## Troubleshooting If at any time you encounter an error during the installation process, reach out to **support@appsmith.com** or join our [Discord Server](https://discord.com/invite/rBTTVJp) -If you know the error and would like to reinstall Appsmith, simply delete the installation folder and the templates folder and execute the script again \ No newline at end of file +If you know the error and would like to reinstall Appsmith, simply delete the installation folder and the templates folder and execute the script again