|
|
|
@ -12,7 +12,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
check: async (req, res, next) => { |
|
|
|
|
|
|
|
|
|
const { __ } = res.locals; |
|
|
|
|
const { __, locale } = res.locals; |
|
|
|
|
const { secureCookies, blockBypass } = config.get; |
|
|
|
|
|
|
|
|
|
//bypass captcha permission
|
|
|
|
@ -28,7 +28,7 @@ module.exports = { |
|
|
|
|
return dynamicResponse(req, res, 403, 'message', { |
|
|
|
|
'title': __('Forbidden'), |
|
|
|
|
'message': __('Please complete a block bypass to continue'), |
|
|
|
|
'frame': '/bypass_minimal.html', |
|
|
|
|
'frame': `/bypass_minimal.html?language=${encodeURIComponent(locale)}`, |
|
|
|
|
'link': { |
|
|
|
|
'href': '/bypass.html', |
|
|
|
|
'text': __('Get block bypass'), |
|
|
|
@ -72,7 +72,7 @@ module.exports = { |
|
|
|
|
return dynamicResponse(req, res, 403, 'message', { |
|
|
|
|
'title': __('Forbidden'), |
|
|
|
|
'message': __('Block bypass expired or exceeded max uses'), |
|
|
|
|
'frame': '/bypass_minimal.html', |
|
|
|
|
'frame': `/bypass_minimal.html?language=${encodeURIComponent(locale)}`, |
|
|
|
|
'link': { |
|
|
|
|
'href': '/bypass.html', |
|
|
|
|
'text': __('Get block bypass'), |
|
|
|
|