Add middlewares to fetch account on individual blockbypass form to allow bypass permission to work (no isLoggedIn needed)

indiachan-spamvector
Thomas Lynch 2 years ago
parent 47083e149b
commit 216968b053
  1. 2
      controllers/forms.js

@ -121,7 +121,7 @@ router.post('/deletesessions', useSession, sessionRefresh, csrf, calcPerms, isLo
//removes captcha cookie, for refreshing for noscript users
router.post('/newcaptcha', newCaptchaForm);
//solve captcha for block bypass
router.post('/blockbypass', geoIp, processIp, verifyCaptcha, blockBypassForm);
router.post('/blockbypass', geoIp, processIp, useSession, sessionRefresh, calcPerms, verifyCaptcha, blockBypassForm);
module.exports = router;

Loading…
Cancel
Save