...
|
...
|
@@ -23,7 +23,7 @@ function required(req, res, next) { |
|
|
};
|
|
|
|
|
|
req.session.captcha = captcha;
|
|
|
req.app.locals.captcha = captcha;
|
|
|
res.app.locals.captcha = captcha;
|
|
|
}
|
|
|
next();
|
|
|
}).catch(next);
|
...
|
...
|
@@ -62,7 +62,7 @@ const geeOnly = function(req, res, next) { |
|
|
};
|
|
|
|
|
|
req.session.captcha = captcha;
|
|
|
req.app.locals.captcha = captcha;
|
|
|
res.app.locals.captcha = captcha;
|
|
|
|
|
|
next();
|
|
|
};
|
...
|
...
|
|