ci: 登录时用户名长度限制

This commit is contained in:
CaptainB 2023-08-29 14:54:36 +08:00 committed by 刘瑞斌
parent 20b21101b3
commit 7e31df10ca
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import lombok.Setter;
@Setter @Setter
public class LoginRequest { public class LoginRequest {
@NotBlank(message = "{user_name_is_null}") @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; private String username;
@NotBlank(message = "{password_is_null}") @NotBlank(message = "{password_is_null}")
@Size(max = 256, message = "{password_length_too_long}") @Size(max = 256, message = "{password_length_too_long}")

View File

@ -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_email_already_exists=User email already exists
user_id_is_null=User ID cannot be null user_id_is_null=User ID cannot be null
user_name_is_null=User name 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 user_email_is_null=User email cannot be null
password_is_null=Password cannot be null password_is_null=Password cannot be null
password_length_too_long=Password length cannot exceed 256 characters password_length_too_long=Password length cannot exceed 256 characters

View File

@ -16,7 +16,7 @@ upload_file_fail_get_file_path_fail=文件上传失败,获取文件上传路
user_email_already_exists=用户邮箱已存在 user_email_already_exists=用户邮箱已存在
user_id_is_null=用户ID不能为空 user_id_is_null=用户ID不能为空
user_name_is_null=用户名不能为空 user_name_is_null=用户名不能为空
user_name_length_too_long=用户名称长度不能超过64个字符 user_name_length_too_long=用户名称长度不能超过256个字符
password_length_too_long=密码长度不能超过256个字符 password_length_too_long=密码长度不能超过256个字符
user_email_is_null=用户邮箱不能为空 user_email_is_null=用户邮箱不能为空
password_is_null=密码不能为空 password_is_null=密码不能为空

View File

@ -16,7 +16,7 @@ upload_file_fail_get_file_path_fail=文件上傳失敗,獲取文件上傳路
user_email_already_exists=用戶郵箱已存在 user_email_already_exists=用戶郵箱已存在
user_id_is_null=用戶ID不能為空 user_id_is_null=用戶ID不能為空
user_name_is_null=用戶名不能為空 user_name_is_null=用戶名不能為空
user_name_length_too_long=用戶名称長度不能超過64個字符 user_name_length_too_long=用戶名称長度不能超過256個字符
user_email_is_null=用戶郵箱不能為空 user_email_is_null=用戶郵箱不能為空
password_is_null=密碼不能為空 password_is_null=密碼不能為空
password_length_too_long=密碼長度不能超過256個字符 password_length_too_long=密碼長度不能超過256個字符