Explorar el Código

!1503 修复使用国密SM2登录重复解密导致的错误。
Merge pull request !1503 from leejor/fix-login

zuohuaijun hace 1 año
padre
commit
fb6163d64b
Se han modificado 1 ficheros con 0 adiciones y 10 borrados
  1. 0 10
      Admin.NET/Admin.NET.Core/Service/Auth/SysAuthService.cs

+ 0 - 10
Admin.NET/Admin.NET.Core/Service/Auth/SysAuthService.cs

@@ -93,16 +93,6 @@ public class SysAuthService : IDynamicApiController, ITransient
         if (tenant != null && tenant.Status == StatusEnum.Disable)
             throw Oops.Oh(ErrorCodeEnum.Z1003);
 
-        // 国密SM2解密(前端密码传输SM2加密后的)
-        try
-        {
-            input.Password = CryptogramUtil.SM2Decrypt(input.Password);
-        }
-        catch
-        {
-            throw Oops.Oh(ErrorCodeEnum.D0010);
-        }
-
         // 是否开启域登录验证
         if (await _sysConfigService.GetConfigValue<bool>(ConfigConst.SysDomainLogin))
         {