From d644f492cea0856f1f3410d77d4545c6f615c651 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 07 八月 2025 17:01:56 +0800
Subject: [PATCH] pref:深度优化

---
 FlexJobApi.Core/Models/User/Auths/Commands/PasswordLoginCommand.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/FlexJobApi.Core/Models/User/Auths/Commands/PasswordLoginCommand.cs b/FlexJobApi.Core/Models/User/Auths/Commands/PasswordLoginCommand.cs
index abc5183..06b7e12 100644
--- a/FlexJobApi.Core/Models/User/Auths/Commands/PasswordLoginCommand.cs
+++ b/FlexJobApi.Core/Models/User/Auths/Commands/PasswordLoginCommand.cs
@@ -12,13 +12,13 @@
     /// <summary>
     /// 瀵嗙爜鐧诲綍
     /// </summary>
+    [Resource([EnumResourceController.Auth], AllowAnonymous = true)]
     public class PasswordLoginCommand : IRequest<PasswordLoginCommandCallback>
     {
         /// <summary>
         /// 璐﹀彿
         /// </summary>
         [Required]
-        [DataValidation(ValidationTypes.Username)]
         public string UserName { get; set; }
         /// <summary>
         /// 瀵嗙爜

--
Gitblit v1.9.1