Authored by htoooth

fix js

... ... @@ -30,7 +30,7 @@ const requiredAPI = (req, res, next) => {
req.session.captcha = CAPTCHA;
return res.json({
code: 403,
code: 405,
message: '该验证码已失效'
});
}
... ... @@ -40,7 +40,7 @@ const requiredAPI = (req, res, next) => {
return next();
} else {
return res.json({
code: 400,
code: 405,
message: '请将图形验证码翻转至正确方向'
});
}
... ... @@ -86,7 +86,7 @@ const checkAPI = (req, res) => {
req.session.captcha = CAPTCHA;
return res.json({
code: 403,
code: 405,
message: '该验证码已失效'
});
}
... ... @@ -99,7 +99,7 @@ const checkAPI = (req, res) => {
});
} else {
return res.json({
code: 400,
code: 405,
message: '请将图形验证码翻转至正确方向'
});
}
... ...
... ... @@ -859,6 +859,7 @@ function loginAsync() {
location.href = res.data.session;
}
} else {
console.log(res);
if (currentLogin.type() === 'password') {
if (res.code === 405) {
// 极验证提示错误
... ...