Эх сурвалжийг харах

😁swagger登录密码sm2加密

zuohuaijun 2 жил өмнө
parent
commit
72a48abced

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/Auth/SysAuthService.cs

@@ -287,7 +287,7 @@ public class SysAuthService : IDynamicApiController, ITransient
             await Login(new LoginInput
             {
                 Account = auth.UserName,
-                Password = auth.Password
+                Password = CryptogramUtil.SM2Encrypt(auth.Password),
             });
 
             _sysCacheService.Remove(CommonConst.SysCaptcha);