mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-02 10:57:10 +08:00
feat: 新增验证码配置开关
This commit is contained in:
@@ -18,7 +18,9 @@ package top.continew.admin.auth.model.req;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
import org.checkerframework.checker.units.qual.N;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
@@ -50,17 +52,20 @@ public class AccountLoginReq implements Serializable {
|
||||
@NotBlank(message = "密码不能为空")
|
||||
private String password;
|
||||
|
||||
@Schema(description = "是否开启验证码", example = "true")
|
||||
private Boolean unCaptcha;
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
@Schema(description = "验证码", example = "ABCD")
|
||||
@NotBlank(message = "验证码不能为空")
|
||||
// @NotBlank(message = "验证码不能为空")
|
||||
private String captcha;
|
||||
|
||||
/**
|
||||
* 验证码标识
|
||||
*/
|
||||
@Schema(description = "验证码标识", example = "090b9a2c-1691-4fca-99db-e4ed0cff362f")
|
||||
@NotBlank(message = "验证码标识不能为空")
|
||||
// @NotBlank(message = "验证码标识不能为空")
|
||||
private String uuid;
|
||||
}
|
||||
|
@@ -38,4 +38,9 @@ public enum OptionCategoryEnum {
|
||||
* 邮箱配置
|
||||
*/
|
||||
MAIL,
|
||||
|
||||
/**
|
||||
* 验证码配置
|
||||
*/
|
||||
CAPTCHA,
|
||||
}
|
||||
|
Reference in New Issue
Block a user