登录改造
This commit is contained in:
@@ -14,4 +14,8 @@ public class LoginCaiUser {
|
||||
@Schema(description = "密码")
|
||||
@NotEmpty(message = "密码不能为空")
|
||||
private String password;
|
||||
|
||||
private String ticket;
|
||||
private String randStr;
|
||||
private String userIp;
|
||||
}
|
||||
|
||||
@@ -8,4 +8,10 @@ import javax.validation.constraints.NotEmpty;
|
||||
public class RegisterCode {
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String mobile;
|
||||
|
||||
@NotEmpty(message = "腾讯验证码参数[ticket]")
|
||||
private String ticket;
|
||||
@NotEmpty(message = "腾讯验证码所属参数[randStr]")
|
||||
private String randStr;
|
||||
private String userIp;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,10 @@ import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LoginVo {
|
||||
// 是否登录成功
|
||||
private boolean loginSuccess;
|
||||
// 是否需要图形验证码
|
||||
private boolean needVerificationCode;
|
||||
private String token;
|
||||
private CurrentUserInfoVo userInfo;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,9 @@ public enum SystemConfigEnum {
|
||||
* 安全配置
|
||||
*/
|
||||
OPEN_IP_NUMBER("5", "IP每日登录次数超过多少次封",SystemConfigGroupEnum.SECURITY),
|
||||
LOGIN_ERROR_OPEN_SECURITY("2", "输入密码次数超过多少次开启图形验证码",SystemConfigGroupEnum.SECURITY),
|
||||
// TODO 新台子改默认值
|
||||
OPEN_OLD_LOGIN_API("1", "开启旧版无验证码登录接口",SystemConfigGroupEnum.SECURITY),
|
||||
OPEN_IP_AUTO("1", "开启自动定时封IP",SystemConfigGroupEnum.SECURITY),
|
||||
OPEN_RESET_PASSWORD("1", "开启重置密码",SystemConfigGroupEnum.SECURITY, new BooleanSystemConfigCheck()),
|
||||
LOGIN_PASSWORD_ERROR_MAX_NUM("5", "登录输错密码上限",SystemConfigGroupEnum.SECURITY, new NumberSystemConfigCheck()),
|
||||
|
||||
Reference in New Issue
Block a user