[TASK] Simplify setting BE/warning_mode 00/57500/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 8 Jul 2018 09:06:02 +0000 (11:06 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 10 Jul 2018 18:25:38 +0000 (20:25 +0200)
The setting used bits 1 and 2. But useful values were only 0/1/2.
So this setting can be simplified.

Resolves: #85508
Releases: master
Change-Id: Ib78174035bcefdec7658f37dae9071062dcb52c1
Reviewed-on: https://review.typo3.org/57500
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Configuration/DefaultConfigurationDescription.yaml

index 14de288..4d25413 100644 (file)
@@ -1045,7 +1045,7 @@ return [
         'groupHomePath' => '',
         'userUploadDir' => '',
         'warning_email_addr' => '',
-        'warning_mode' => '',
+        'warning_mode' => 0,
         'lockIP' => 4,
         'sessionTimeout' => 28800,  // a backend user logged in for 8 hours
         'IPmaskList' => '',
index 25d4034..2172d66 100644 (file)
@@ -260,8 +260,12 @@ BE:
             type: text
             description: 'Email address that will receive notification whenever an attempt to login to the Install Tool is made and that will also receive warnings whenever more than 3 failed backend login attempts (regardless of user) are detected within an hour.'
         warning_mode:
-            type: bit
-            description: 'Bit 1: If set, <code>warning_email_addr</code> will be notified every time a backend user logs in. Bit 2: If set, <code>warning_email_addr</code> will be notified every time an ADMIN backend user logs in.'
+            type: int
+            allowedValues:
+              '0': 'Do not send notification-emails upon backend-login'
+              '1': 'Send a notification-email every time a backend user logs in'
+              '2': 'Send a notification-email every time an ADMIN backend user logs in'
+            description: 'Send emails to <code>warning_email_addr</code> upon backend-login'
         lockIP:
             type: int
             allowedValues: