All configuration of Ban message

Created on 22 December 2023, about 1 year 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

Active

Version

8.9 ⚰️

Component
Ban 

Last updated about 1 month 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