Merge branch 'feature/force-bind2' into release/6.5
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -23,7 +23,7 @@ function required(req, res, next) { | @@ -23,7 +23,7 @@ function required(req, res, next) { | ||
23 | }; | 23 | }; |
24 | 24 | ||
25 | req.session.captcha = captcha; | 25 | req.session.captcha = captcha; |
26 | - req.app.locals.captcha = captcha; | 26 | + res.app.locals.captcha = captcha; |
27 | } | 27 | } |
28 | next(); | 28 | next(); |
29 | }).catch(next); | 29 | }).catch(next); |
@@ -62,7 +62,7 @@ const geeOnly = function(req, res, next) { | @@ -62,7 +62,7 @@ const geeOnly = function(req, res, next) { | ||
62 | }; | 62 | }; |
63 | 63 | ||
64 | req.session.captcha = captcha; | 64 | req.session.captcha = captcha; |
65 | - req.app.locals.captcha = captcha; | 65 | + res.app.locals.captcha = captcha; |
66 | 66 | ||
67 | next(); | 67 | next(); |
68 | }; | 68 | }; |
-
Please register or login to post a comment