Showing
1 changed file
with
1 additions
and
2 deletions
@@ -74,8 +74,7 @@ exports.validate = (req, res, next) => { | @@ -74,8 +74,7 @@ exports.validate = (req, res, next) => { | ||
74 | captchaShow: true | 74 | captchaShow: true |
75 | }; | 75 | }; |
76 | 76 | ||
77 | - logger.info(`captcha validate result:${ | ||
78 | - captchaInput.toString() === captchaCode},user:${captchaInput};server:${captchaCode}`); | 77 | + logger.info(`captcha validate result:${(captchaInput && captchaInput.toString()) === captchaCode},user:${captchaInput};server:${captchaCode}`); // eslint-disable-line |
79 | 78 | ||
80 | _.set(req.session, 'captchaValidCount', errorCount - 1); | 79 | _.set(req.session, 'captchaValidCount', errorCount - 1); |
81 | 80 |
-
Please register or login to post a comment