...
|
...
|
@@ -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: '请将图形验证码翻转至正确方向'
|
|
|
});
|
|
|
}
|
...
|
...
|
|