用户不需要验证码的时候刷新验证会导致错误,增加判断

This commit is contained in:
virusdefender 2015-09-21 12:28:22 +08:00
parent 041fd2cb60
commit 725d950e27

View File

@ -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);
} }
} }