Authored by htoooth

fix tip

... ... @@ -47,7 +47,7 @@ const requiredAPI = (req, res, next) => {
if (!verifyCode) {
return res.send({
code: 401,
code: 405,
message: '参数失效'
});
}
... ... @@ -66,12 +66,12 @@ const requiredAPI = (req, res, next) => {
if (err) {
res.send({
message: '网络失败',
code: 401
code: 405
});
} else if (!success) {
res.send({
message: '图形验证失败',
code: 401
code: 405
});
} else {
return next();
... ... @@ -87,7 +87,7 @@ const checkAPI = (req, res) => {
if (!verifyCode) {
return res.send({
code: 401,
code: 405,
message: '参数失效'
});
}
... ... @@ -110,12 +110,12 @@ const checkAPI = (req, res) => {
if (err) {
return res.send({
message: '网络失败',
code: 401
code: 405
});
} else if (!success) {
return res.send({
message: '图形验证失败',
code: 401
code: 405
});
} else {
return res.send({
... ...
... ... @@ -860,6 +860,12 @@ function loginAsync() {
}
} else {
if (currentLogin.type() === 'password') {
if (res.code === 405) {
// 极验证提示错误
passwordCaptchaImg.showTip(res.message);
return;
}
showPasswordTip(res.message);
$passwordInput.addClass('error').val('');
... ...