mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
用户不需要验证码的时候刷新验证会导致错误,增加判断
This commit is contained in:
parent
041fd2cb60
commit
725d950e27
@ -33,7 +33,9 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
|
|||||||
location.href = "/";
|
location.href = "/";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
refresh_captcha();
|
if(applied_captcha) {
|
||||||
|
refresh_captcha();
|
||||||
|
}
|
||||||
bsAlert(data.data);
|
bsAlert(data.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user