登录验证码配置优化

This commit is contained in:
MaxKey
2024-12-30 09:09:18 +08:00
parent 0ff07a42e7
commit 63ce90286e
6 changed files with 26 additions and 5 deletions

View File

@@ -26,6 +26,9 @@ public class LoginConfig {
@Value("${maxkey.login.captcha}")
boolean captcha;
@Value("${maxkey.login.captcha.type}")
String captchaType;
@Value("${maxkey.login.mfa}")
boolean mfa;
@@ -108,6 +111,14 @@ public class LoginConfig {
this.casService = casService;
}
public String getCaptchaType() {
return captchaType;
}
public void setCaptchaType(String captchaType) {
this.captchaType = captchaType;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();