enhance notice when submitted too many wrong passwords
This commit is contained in:
parent
c6bee0727f
commit
fe8291d05c
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-07-17 10:54:22
|
* @Date: 2016-07-17 10:54:22
|
||||||
* @Last Modified by: printempw
|
* @Last Modified by: printempw
|
||||||
* @Last Modified time: 2016-08-26 13:05:14
|
* @Last Modified time: 2016-09-05 22:24:33
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
@ -69,18 +69,17 @@ $('#login-button').click(function() {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (json.login_fails > 3) {
|
if (json.login_fails > 3) {
|
||||||
swal({
|
if ($('#captcha-form').css('display') == "none") {
|
||||||
type: 'error',
|
swal({
|
||||||
html: '你尝试的次数太多啦,请输入验证码'
|
type: 'error',
|
||||||
});
|
html: '你尝试的次数太多啦,请输入验证码'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$('#captcha-form').show();
|
$('#captcha-form').show();
|
||||||
freshCaptcha();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($('#captcha-form').css('display') == "block") {
|
freshCaptcha();
|
||||||
freshCaptcha();
|
|
||||||
}
|
|
||||||
|
|
||||||
showMsg(json.msg, 'warning');
|
showMsg(json.msg, 'warning');
|
||||||
$('#login-button').html('登录').prop('disabled', '');
|
$('#login-button').html('登录').prop('disabled', '');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user