Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing Sign Up and Sign In items fields in Application #87

Merged
merged 2 commits into from
Sep 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion src/main/java/org/casbin/casdoor/entity/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public class Application implements Serializable {
public int formOffset;
public String formSideHtml;
public String formBackgroundUrl;
public List<SigninMethod> signinMethods;
public List<SigninItem> signinItems;
public List<SignupItem> signupItems;

public Application() {
}
Expand All @@ -71,4 +74,30 @@ public Application(String owner, String name, String createdTime, String display
this.description = description;
this.organization = organization;
}
}

public static class SigninMethod {
public String name;
public String displayName;
public String rule;
}

public static class SigninItem {
public String name;
public boolean visible;
public String label;
public String placeholder;
public String rule;
public boolean isCustom;
}

public static class SignupItem {
public String label;
public String name;
public String placeholder;
public boolean prompted;
public String regex;
public boolean required;
public String rule;
public boolean visible;
}
}
Loading