Quellcode durchsuchen

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

zen vor 2 Jahren
Ursprung
Commit
1cb66a7e5f

+ 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