otpCaptcha

This commit is contained in:
MaxKey
2022-04-22 11:46:01 +08:00
parent a02822d0b3
commit e31a83b679
8 changed files with 34 additions and 7 deletions
@@ -23,6 +23,9 @@ import org.springframework.context.annotation.Configuration;
@Configuration
public class LoginConfig {
@Value("${maxkey.login.captcha}")
boolean captcha;
@Value("${maxkey.login.mfa}")
boolean mfa;
@@ -41,9 +44,15 @@ public class LoginConfig {
public LoginConfig() {
}
public boolean isCaptcha() {
return captcha;
}
public void setCaptcha(boolean captcha) {
this.captcha = captcha;
}
public boolean isKerberos() {
public boolean isKerberos() {
return kerberos;
}