perf(X-Pack): 登录增加 MFA 机制

This commit is contained in:
fit2cloud-chenyw
2024-12-07 10:12:23 +08:00
parent 38bc011c82
commit a9233f3062
5 changed files with 32 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
package io.dataease.auth.vo;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
@Data
public class MfaItem implements Serializable {
@Serial
private static final long serialVersionUID = 6647534143991435022L;
private boolean enabled;
private boolean ready;
}

View File

@@ -21,4 +21,11 @@ public class TokenVO implements Serializable {
@Schema(description = "有效期")
private Long exp;
private MfaItem mfa;
public TokenVO(String token, Long exp) {
this.token = token;
this.exp = exp;
}
}