From 70c715212fccdd74e0a27681d68fece6077f15a7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 17 Nov 2024 10:16:31 -0500 Subject: [PATCH] Move authentication options to it's own tab --- .../lib/ZoneMinder/ConfigData.pm.in | 26 +++++++++---------- web/skins/classic/views/options.php | 1 + 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index b52729e33..2a9217722 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -287,7 +287,7 @@ our @options = ( limited by their defined permissions. `, type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_TYPE', @@ -311,7 +311,7 @@ our @options = ( pattern => qr|^([br])|i, format => q( $1 =~ /^b/ ? 'builtin' : 'remote' ) }, - category => 'system', + category => 'auth', }, { name => 'ZM_CASE_INSENSITIVE_USERNAMES', @@ -323,7 +323,7 @@ our @options = ( `, requires => [ { name=>'ZM_OPT_USE_AUTH', value=>'yes' } ], type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_RELAY', @@ -348,7 +348,7 @@ our @options = ( pattern => qr|^([hpn])|i, format => q( ($1 =~ /^h/) ? 'hashed' : ($1 =~ /^p/ ? 'plain' : 'none' ) ) }, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_HASH_SECRET', @@ -367,7 +367,7 @@ our @options = ( ], type => $types{string}, private => 1, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_HASH_IPS', @@ -390,7 +390,7 @@ our @options = ( { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_HASH_TTL', @@ -405,7 +405,7 @@ our @options = ( { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{integer}, - category => 'system', + category => 'auth', }, { name => 'ZM_AUTH_HASH_LOGINS', @@ -431,7 +431,7 @@ our @options = ( { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_RTSP2WEB_PATH', @@ -497,7 +497,7 @@ our @options = ( if you are exposing your ZM instance on the Internet. `, type => $types{boolean}, - category => 'system', + category => 'api', }, { name => 'ZM_OPT_USE_LEGACY_API_AUTH', @@ -508,7 +508,7 @@ our @options = ( Authentication mechanism using JWT tokens. Older versions used a less secure MD5 based auth hash. It is recommended you turn this off after you are sure you don't need it. If you are using a 3rd party app that relies on the older API auth mechanisms, you will have to update that app if you turn this off. Note that zmNinja 1.3.057 onwards supports the new token system `, type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_OPT_USE_EVENTNOTIFICATION', @@ -545,7 +545,7 @@ our @options = ( {name=>'ZM_OPT_USE_AUTH', value=>'yes'} ], type => $types{boolean}, - category => 'system', + category => 'auth', }, { name => 'ZM_OPT_GOOG_RECAPTCHA_SITEKEY', @@ -560,7 +560,7 @@ our @options = ( ], type => $types{string}, private => 1, - category => 'system', + category => 'auth', }, { name => 'ZM_OPT_GOOG_RECAPTCHA_SECRETKEY', @@ -576,7 +576,7 @@ our @options = ( ], type => $types{string}, private => 1, - category => 'system', + category => 'auth', }, { name => 'ZM_OPT_USE_GEOLOCATION', diff --git a/web/skins/classic/views/options.php b/web/skins/classic/views/options.php index 246b06f57..b0fdcff61 100644 --- a/web/skins/classic/views/options.php +++ b/web/skins/classic/views/options.php @@ -29,6 +29,7 @@ $tabs = array(); if (!defined('ZM_FORCE_CSS_DEFAULT') or !defined('ZM_FORCE_SKIN_DEFAULT')) $tabs['skins'] = translate('Display'); $tabs['system'] = translate('System'); +$tabs['auth'] = translate('Authentication'); $tabs['config'] = translate('Config'); if (defined('ZM_PATH_DNSMASQ_CONF') and ZM_PATH_DNSMASQ_CONF) { $tabs['dnsmasq'] = translate('DHCP');