mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-06-10 03:07:33 +08:00
#I6YCC5 用户的门户网站能否关闭验证码校验?已完成
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user