瀏覽代碼

#I6YCC5 用户的门户网站能否关闭验证码校验?已完成

zen 2 年之前
父節點
當前提交
1cb66a7e5f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts

+ 1 - 0
maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts

@@ -136,6 +136,7 @@ export class UserLoginComponent implements OnInit, OnDestroy {
             this.state = res.data.state;
             this.captchaType = res.data.captcha;
             if (this.captchaType === 'NONE') {
+              //清除校验规则
               this.form.get('captcha')?.clearValidators();
             } else {
               //init image captcha