Project

General

Profile

Actions

Bug #16145

closed

Not possible to delete Custom message text for the login screen

Added by Patrik Stahlman 1 day ago. Updated 40 minutes ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
25.03
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:
All

Description

I tried the new feature #9293 to add Custom message text for the login screen. All went well until I wanted to remove the text. It did not work. Selecting the text, pressing delete and save resulted in "The changes have been applied successfully." with an empty text box (as would be
expected). But entering General Setup again shows the message still being present (also verified by loging out/in again).

A temporary "work-around" is to not delete the complete message but leave an empty space, but that gives an empty message field on the login page.

Actions #1

Updated by Patrik Stahlman 1 day ago

This change seems to fix the issue


--- system.php.orig     2025-04-14 19:04:00.000000000 +0200
+++ system.php  2025-04-18 13:33:19.868263000 +0200
@@ -339,6 +339,8 @@
                        $login_message = strip_tags(strval($pconfig['login_message']));
                        $pconfig['login_message'] = $login_message;
                        config_set_path('system/login_message', base64_encode($login_message));
+               } else {
+                       config_del_path('system/login_message');
                }

Actions #2

Updated by Marcos M about 23 hours ago

  • Project changed from pfSense Plus to pfSense
  • Category changed from Web Interface to Web Interface
  • Status changed from New to In Progress
  • Assignee set to Marcos M
  • Target version set to 2.8.0
  • Release Notes changed from Default to Force Exclusion
  • Affected Plus Version deleted (25.03)
  • Plus Target Version set to 25.03

Thanks!

Actions #3

Updated by Marcos M about 23 hours ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Christopher Cope 40 minutes ago

  • Status changed from Feedback to Resolved

Tested on

25.07-DEVELOPMENT (amd64)
built on Fri Apr 18 19:41:00 UTC 2025
FreeBSD 15.0-CURRENT

This fix is merged into the above version and is no longer an issue. Marking resolved.

Actions

Also available in: Atom PDF