用户不需要验证码的时候刷新验证会导致错误,增加判断
This commit is contained in:
1 parent
041fd2cb60
commit
725d950e27
1 file changed
+3
-1
@@ -33,7 +33,9 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
|
||||
location.href = "/";
|
||||
}
|
||||
else {
|
||||
refresh_captcha();
|
||||
if(applied_captcha) {
|
||||
refresh_captcha();
|
||||
}
|
||||
bsAlert(data.data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user