mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-10 08:57:19 +08:00
chore(captcha/behavior): 默认启用行为验证码自动配置
This commit is contained in:
@@ -49,7 +49,7 @@ import java.util.Properties;
|
|||||||
*/
|
*/
|
||||||
@AutoConfiguration
|
@AutoConfiguration
|
||||||
@EnableConfigurationProperties(BehaviorCaptchaProperties.class)
|
@EnableConfigurationProperties(BehaviorCaptchaProperties.class)
|
||||||
@ConditionalOnProperty(prefix = PropertiesConstants.CAPTCHA_BEHAVIOR, name = PropertiesConstants.ENABLED, havingValue = "true")
|
@ConditionalOnProperty(prefix = PropertiesConstants.CAPTCHA_BEHAVIOR, name = PropertiesConstants.ENABLED, matchIfMissing = true)
|
||||||
public class BehaviorCaptchaAutoConfiguration {
|
public class BehaviorCaptchaAutoConfiguration {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(BehaviorCaptchaAutoConfiguration.class);
|
private static final Logger log = LoggerFactory.getLogger(BehaviorCaptchaAutoConfiguration.class);
|
||||||
|
@@ -36,7 +36,7 @@ public class BehaviorCaptchaProperties {
|
|||||||
/**
|
/**
|
||||||
* 是否启用行为验证码
|
* 是否启用行为验证码
|
||||||
*/
|
*/
|
||||||
private boolean enabled = false;
|
private boolean enabled = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否开启 AES 坐标加密(默认:true)
|
* 是否开启 AES 坐标加密(默认:true)
|
||||||
|
Reference in New Issue
Block a user