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 fields to User #99

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
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
74 changes: 74 additions & 0 deletions src/main/java/org/casbin/casdoor/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,80 @@ public class User implements Serializable {
public List<Role> roles;
public List<Permission> permissions;


public List<String> recoveryCodes;
tysunrain marked this conversation as resolved.
Show resolved Hide resolved
public List<String> groups;
@JsonProperty("mfaPhoneEnabled")
public boolean mfaPhoneEnabled;

@JsonProperty("mfaEmailEnabled")
public boolean mfaEmailEnabled;


public int signinWrongTimes;
public String externalId = "";
public String passwordType = "";
public String avatarType = "";
public String countryCode = "";
public String accessKey = "";
public String accessSecret = "";
public String line = "";
public String amazon = "";
public String auth0 = "";
public String battleNet = "";
public String bitbucket = "";
public String box = "";
public String cloudFoundry = "";
public String dailymotion = "";
public String deezer = "";
public String digitalOcean = "";
public String discord = "";
public String dropbox = "";
public String eveOnline = "";
public String fitbit = "";
public String gitea = "";
public String heroku = "";
public String influxCloud = "";
public String instagram = "";
public String intercom = "";
public String kakao = "";
public String lastfm = "";
public String mailru = "";
public String meetup = "";
public String microsoftOnline = "";
public String naver = "";
public String nextcloud = "";
public String oneDrive = "";
public String oura = "";
public String patreon = "";
public String paypal = "";
public String salesForce = "";
public String shopify = "";
public String soundcloud = "";
public String spotify = "";
public String strava = "";
public String stripe = "";
public String tikTok = "";
public String tumblr = "";
public String twitch = "";
public String twitter = "";
public String typetalk = "";
public String uber = "";
public String vK = "";
public String wepay = "";
public String xero = "";
public String yahoo = "";
public String yammer = "";
public String yandex = "";
public String zoom = "";
public String metaMask = "";
public String web3Onboard = "";
public String preferredMfaType = "";
public String totpSecret = "";
public String lastSigninWrongTime = "";



@JsonGetter("isOnline")
public boolean isOnline() {
return isOnline;
Expand Down
Loading