Authored by 郭成尧

online-error-by-log

@@ -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