mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 22:57:17 +08:00 
			
		
		
		
	refactor: 将短信验证码长度从 4 位增加到 6 位 (PR by Gitee@hagyao520)
This commit is contained in:
		| @@ -49,8 +49,8 @@ public class PhoneLoginReq extends LoginReq { | |||||||
|     /** |     /** | ||||||
|      * 验证码 |      * 验证码 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "验证码", example = "8888") |     @Schema(description = "验证码", example = "888888") | ||||||
|     @NotBlank(message = "验证码不能为空") |     @NotBlank(message = "验证码不能为空") | ||||||
|     @Length(max = 4, message = "验证码非法") |     @Length(max = 6, message = "验证码非法") | ||||||
|     private String captcha; |     private String captcha; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -50,9 +50,9 @@ public class UserPhoneUpdateReq implements Serializable { | |||||||
|     /** |     /** | ||||||
|      * 验证码 |      * 验证码 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "验证码", example = "8888") |     @Schema(description = "验证码", example = "888888") | ||||||
|     @NotBlank(message = "验证码不能为空") |     @NotBlank(message = "验证码不能为空") | ||||||
|     @Length(max = 4, message = "验证码非法") |     @Length(max = 6, message = "验证码非法") | ||||||
|     private String captcha; |     private String captcha; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
| @@ -127,7 +127,7 @@ captcha: | |||||||
|   ## 短信验证码配置 |   ## 短信验证码配置 | ||||||
|   sms: |   sms: | ||||||
|     # 内容长度 |     # 内容长度 | ||||||
|     length: 4 |     length: 6 | ||||||
|     # 过期时间 |     # 过期时间 | ||||||
|     expirationInMinutes: 5 |     expirationInMinutes: 5 | ||||||
|     # 模板 ID |     # 模板 ID | ||||||
|   | |||||||
| @@ -129,7 +129,7 @@ captcha: | |||||||
|   ## 短信验证码配置 |   ## 短信验证码配置 | ||||||
|   sms: |   sms: | ||||||
|     # 内容长度 |     # 内容长度 | ||||||
|     length: 4 |     length: 6 | ||||||
|     # 过期时间 |     # 过期时间 | ||||||
|     expirationInMinutes: 5 |     expirationInMinutes: 5 | ||||||
|     # 模板 ID |     # 模板 ID | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user