Browse Source

删除测试登录验证码

zhontai 2 years ago
parent
commit
07ff0c3f64
1 changed files with 0 additions and 7 deletions
  1. 0 7
      src/tests/ZhonTai.Tests/BaseControllerTest.cs

+ 0 - 7
src/tests/ZhonTai.Tests/BaseControllerTest.cs

@@ -166,13 +166,6 @@ public class BaseControllerTest : BaseTest
                 UserName = "admin",
                 Password = "111111"
             };
-            if (_appConfig.VarifyCode.Enable)
-            {
-                var res = await _captcha.GetAsync(CacheKeys.Captcha);
-                var captchaKey = CacheKeys.Captcha + res.Token;
-                var captchaData = await _cache.GetAsync(captchaKey);
-                input.Captcha = new CaptchaInput { CaptchaKey = CacheKeys.Captcha, Token = res.Token, Data = JsonConvert.SerializeObject(new { X = captchaData }) };
-            }
         }
 
         //Client.DefaultRequestHeaders.Connection.Add("keep-alive");