update 适配ruoyi错误登录与解锁功能

This commit is contained in:
疯狂的狮子li
2022-08-08 10:55:47 +08:00
parent 7bacfd9c4c
commit 0c5cf65965
13 changed files with 172 additions and 283 deletions

View File

@@ -0,0 +1,29 @@
package com.ruoyi.auth.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
/**
* 用户密码配置
*
* @author Lion Li
*/
@Data
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "user.password")
public class UserPasswordProperties {
/**
* 密码最大错误次数
*/
private Integer maxRetryCount;
/**
* 密码锁定时间默认10分钟
*/
private Integer lockTime;
}