All configuration of Ban message

Created on 22 December 2023, 9 months ago
Updated 23 December 2023, 9 months ago

Problem/Motivation

The message generated by the Ban module when a banned IP address accesses a site is '@ip has been banned'. We wished to change this a bit.

Steps to reproduce

Enable the core Ban module
Ban an IP address at /admin/config/people/ban
Visit the site from that IP address

Proposed resolution

Add a config form to allow this message to be changed. It will default to '@ip had been banned' and validate that a message is entered and that it contains '@ip'.
Change BanMiddleware::handle to look up the configuration value, default to '@ip has been banned' and use that instead of the hardcoded message.

Remaining tasks

Test the patch provided

User interface changes

Added config form in the menu under admin/config/people/ban.
The message is changed.

API changes

None

Data model changes

None

Release notes snippet

N/A

✨ Feature request
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
BanΒ  β†’

Last updated 5 days ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom Rory Downes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024