ci: 登录时用户名长度限制
This commit is contained in:
parent
20b21101b3
commit
7e31df10ca
|
@ -11,7 +11,7 @@ import lombok.Setter;
|
|||
@Setter
|
||||
public class LoginRequest {
|
||||
@NotBlank(message = "{user_name_is_null}")
|
||||
@Size(max = 64, message = "{user_name_length_too_long}")
|
||||
@Size(max = 256, message = "{user_name_length_too_long}")
|
||||
private String username;
|
||||
@NotBlank(message = "{password_is_null}")
|
||||
@Size(max = 256, message = "{password_length_too_long}")
|
||||
|
|
|
@ -18,7 +18,7 @@ upload_file_fail_get_file_path_fail=Failed to upload the file, failed to get the
|
|||
user_email_already_exists=User email already exists
|
||||
user_id_is_null=User ID cannot be null
|
||||
user_name_is_null=User name cannot be null
|
||||
user_name_length_too_long=User name length cannot exceed 64 characters
|
||||
user_name_length_too_long=User name length cannot exceed 256 characters
|
||||
user_email_is_null=User email cannot be null
|
||||
password_is_null=Password cannot be null
|
||||
password_length_too_long=Password length cannot exceed 256 characters
|
||||
|
|
|
@ -16,7 +16,7 @@ upload_file_fail_get_file_path_fail=文件上传失败,获取文件上传路
|
|||
user_email_already_exists=用户邮箱已存在
|
||||
user_id_is_null=用户ID不能为空
|
||||
user_name_is_null=用户名不能为空
|
||||
user_name_length_too_long=用户名称长度不能超过64个字符
|
||||
user_name_length_too_long=用户名称长度不能超过256个字符
|
||||
password_length_too_long=密码长度不能超过256个字符
|
||||
user_email_is_null=用户邮箱不能为空
|
||||
password_is_null=密码不能为空
|
||||
|
|
|
@ -16,7 +16,7 @@ upload_file_fail_get_file_path_fail=文件上傳失敗,獲取文件上傳路
|
|||
user_email_already_exists=用戶郵箱已存在
|
||||
user_id_is_null=用戶ID不能為空
|
||||
user_name_is_null=用戶名不能為空
|
||||
user_name_length_too_long=用戶名称長度不能超過64個字符
|
||||
user_name_length_too_long=用戶名称長度不能超過256個字符
|
||||
user_email_is_null=用戶郵箱不能為空
|
||||
password_is_null=密碼不能為空
|
||||
password_length_too_long=密碼長度不能超過256個字符
|
||||
|
|
Loading…
Reference in New Issue