Merge branch 'master_add_auth_1027' of http://192.168.5.200:8081/ql/apismnagaer_backend into master_add_auth_1027

This commit is contained in:
南浔
2024-10-27 23:19:24 +08:00
4 changed files with 44 additions and 2 deletions
+3 -1
View File
@@ -4,8 +4,10 @@ namespace Apimanager_backend.Dtos
{
public class UserLoginDto
{
[MaxLength(20)]
[MaxLength(20,ErrorMessage = "The maximum username is 20 characters")]
public string UserName { get; set; }
[MaxLength(50,ErrorMessage = "The maximum password is 50 characters")]
[Required(ErrorMessage = "password is required")]
public string Password { get; set; }
}
}