refactor: 将短信验证码长度从 4 位增加到 6 位 (PR by Gitee@hagyao520)

This commit is contained in:
2025-03-20 22:36:17 +08:00
parent 2ec0b343e0
commit 611c3d8a0a
4 changed files with 6 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ public class PhoneLoginReq extends LoginReq {
/**
* 验证码
*/
@Schema(description = "验证码", example = "8888")
@Schema(description = "验证码", example = "888888")
@NotBlank(message = "验证码不能为空")
@Length(max = 4, message = "验证码非法")
@Length(max = 6, message = "验证码非法")
private String captcha;
}

View File

@@ -50,9 +50,9 @@ public class UserPhoneUpdateReq implements Serializable {
/**
* 验证码
*/
@Schema(description = "验证码", example = "8888")
@Schema(description = "验证码", example = "888888")
@NotBlank(message = "验证码不能为空")
@Length(max = 4, message = "验证码非法")
@Length(max = 6, message = "验证码非法")
private String captcha;
/**

View File

@@ -127,7 +127,7 @@ captcha:
## 短信验证码配置
sms:
# 内容长度
length: 4
length: 6
# 过期时间
expirationInMinutes: 5
# 模板 ID

View File

@@ -129,7 +129,7 @@ captcha:
## 短信验证码配置
sms:
# 内容长度
length: 4
length: 6
# 过期时间
expirationInMinutes: 5
# 模板 ID