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