Skip to content

Commit 3e6ce10

Browse files
zuohuaijungitee-org
authored andcommitted
!1720 update Admin.NET/Admin.NET.Core/Service/Auth/SysAuthService.cs.
Merge pull request !1720 from Lzh666/N/A
2 parents 46753af + a3c7c61 commit 3e6ce10

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Admin.NET/Admin.NET.Core/Service/Auth/SysAuthService.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -421,20 +421,14 @@ public int SwaggerCheckUrl()
421421
[ApiDescriptionSettings(Description = "Swagger登录提交", DisableInherite = true)]
422422
public async Task<int> SwaggerSubmitUrl([FromForm] SpecificationAuth auth)
423423
{
424-
// 尝试从发起请求页的地址栏中获取租户id,为空则使用默认租户
425-
var tenantIdStr = Regex.Match(App.HttpContext.Request.Headers.Referer.ToString() ?? "", @"(?<=t=)(\d+)").Value;
426-
var tenantId = string.IsNullOrWhiteSpace(tenantIdStr)
427-
? SqlSugarConst.DefaultTenantId
428-
: long.Parse(tenantIdStr);
429424
try
430425
{
431426
_sysCacheService.Set($"{CacheConst.KeyConfig}{ConfigConst.SysCaptcha}", false);
432427

433428
await Login(new LoginInput
434429
{
435430
Account = auth.UserName,
436-
Password = CryptogramUtil.SM2Encrypt(auth.Password),
437-
TenantId = tenantId
431+
Password = CryptogramUtil.SM2Encrypt(auth.Password)
438432
});
439433

440434
_sysCacheService.Remove($"{CacheConst.KeyConfig}{ConfigConst.SysCaptcha}");

0 commit comments

Comments
 (0)