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

View File

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

View File

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

File diff suppressed because one or more lines are too long