소스 검색

#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