Fix conf options (#1482 & #1483)

This commit is contained in:
Christophe Maudoux 2018-07-22 22:35:30 +02:00
parent 77c36cc98e
commit 3e85f1f68f
5 changed files with 13 additions and 8 deletions

View File

@ -125,7 +125,7 @@ sub defaultValues {
'max2FDevicesNameLength' => 20, 'max2FDevicesNameLength' => 20,
'multiValuesSeparator' => '; ', 'multiValuesSeparator' => '; ',
'mySessionAuthorizedRWKeys' => 'mySessionAuthorizedRWKeys' =>
[ '_appsListOrder', '_oidcConnectedRP', '_oidc_consent_*' ], [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
'notificationStorage' => 'File', 'notificationStorage' => 'File',
'notificationStorageOptions' => { 'notificationStorageOptions' => {
'dirName' => '/var/lib/lemonldap-ng/notifications' 'dirName' => '/var/lib/lemonldap-ng/notifications'

View File

@ -749,7 +749,8 @@ qr/(?:(?:https?):\/\/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.]
'type' => 'text' 'type' => 'text'
}, },
'checkState' => { 'checkState' => {
'type' => 'bool' 'default' => 0,
'type' => 'bool'
}, },
'checkStateSecret' => { 'checkStateSecret' => {
'type' => 'text' 'type' => 'text'
@ -1603,7 +1604,7 @@ qr/^(?:\*\.)?(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][
}, },
'mySessionAuthorizedRWKeys' => { 'mySessionAuthorizedRWKeys' => {
'default' => 'default' =>
[ '_appsListOrder', '_oidcConnectedRP', '_oidc_consent_*' ], [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
'type' => 'array' 'type' => 'array'
}, },
'nginxCustomHandlers' => { 'nginxCustomHandlers' => {
@ -3163,7 +3164,8 @@ qr/^(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-
'type' => 'bool' 'type' => 'bool'
}, },
'stayConnected' => { 'stayConnected' => {
'type' => 'bool' 'default' => 0,
'type' => 'bool'
}, },
'storePassword' => { 'storePassword' => {
'default' => 0, 'default' => 0,

View File

@ -229,7 +229,7 @@ sub attributes {
type => 'array', type => 'array',
documentation => 'Alterable session keys by user itself', documentation => 'Alterable session keys by user itself',
default => default =>
[ '_appsListOrder', '_oidcConnectedRP', '_oidc_consent_*' ], [ '_appsListOrder', '_oidcConnectedRP', '_oidcConsents' ],
}, },
configStorage => { configStorage => {
type => 'text', type => 'text',
@ -382,10 +382,12 @@ sub attributes {
}, },
stayConnected => { stayConnected => {
type => 'bool', type => 'bool',
default => 0,
documentation => 'Enable StayConnected plugin', documentation => 'Enable StayConnected plugin',
}, },
checkState => { checkState => {
type => 'bool', type => 'bool',
default => 0,
documentation => 'Enable CheckState plugin', documentation => 'Enable CheckState plugin',
}, },
checkStateSecret => { checkStateSecret => {

View File

@ -624,12 +624,13 @@ sub tree {
{ {
title => 'autoSignin', title => 'autoSignin',
help => 'autosignin.html', help => 'autosignin.html',
nodes => ['autoSigninRules'] nodes => ['autoSigninRules'],
}, },
{ {
title => 'stateCheck', title => 'stateCheck',
help => 'checkstate.html', help => 'checkstate.html',
nodes => [ 'checkState', 'checkStateSecret', ] form => 'simpleInputContainer',
nodes => [ 'checkState', 'checkStateSecret', ],
}, },
] ]
}, },

File diff suppressed because one or more lines are too long