captcha string instead of mongoid class fixes json cookie issue for nginx

merge-requests/208/head
fatchan 5 years ago
parent 139f937897
commit 44e05e6220
  1. 5
      models/pages/captcha.js

@ -23,9 +23,10 @@ module.exports = async (req, res, next) => {
}
return res
.cookie('captchaid', captchaId, {
.cookie('captchaid', captchaId.toString(), {
'maxAge': 5*60*1000, //5 minute cookie
'httpOnly': true
'httpOnly': true,
'secure': true
})
.redirect(`/captcha/${captchaId}.png`);

Loading…
Cancel
Save