File tree 1 file changed +1
-7
lines changed
Admin.NET/Admin.NET.Core/Service/Auth
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -421,20 +421,14 @@ public int SwaggerCheckUrl()
421
421
[ ApiDescriptionSettings ( Description = "Swagger登录提交" , DisableInherite = true ) ]
422
422
public async Task < int > SwaggerSubmitUrl ( [ FromForm ] SpecificationAuth auth )
423
423
{
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 ) ;
429
424
try
430
425
{
431
426
_sysCacheService . Set ( $ "{ CacheConst . KeyConfig } { ConfigConst . SysCaptcha } ", false ) ;
432
427
433
428
await Login ( new LoginInput
434
429
{
435
430
Account = auth . UserName ,
436
- Password = CryptogramUtil . SM2Encrypt ( auth . Password ) ,
437
- TenantId = tenantId
431
+ Password = CryptogramUtil . SM2Encrypt ( auth . Password )
438
432
} ) ;
439
433
440
434
_sysCacheService . Remove ( $ "{ CacheConst . KeyConfig } { ConfigConst . SysCaptcha } ") ;
You can’t perform that action at this time.
0 commit comments