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