...
|
...
|
@@ -40,7 +40,7 @@ const requiredAPI = (req, res, next) => { |
|
|
return next();
|
|
|
} else {
|
|
|
return res.json({
|
|
|
code: 403,
|
|
|
code: 405,
|
|
|
message: '请将图形验证码翻转至正确方向'
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -86,7 +86,7 @@ const checkAPI = (req, res) => { |
|
|
req.session.captcha = CAPTCHA;
|
|
|
|
|
|
return res.json({
|
|
|
code: 403,
|
|
|
code: 405,
|
|
|
message: '该验证码已失效,请刷新验证码'
|
|
|
});
|
|
|
}
|
...
|
...
|
|