Set default values for BrowserID parameters (#595)

This commit is contained in:
Xavier Guimard 2016-05-23 21:52:26 +00:00
parent 4ec26d5f46
commit 4cde65c825
4 changed files with 18 additions and 9 deletions

View File

@ -18,6 +18,11 @@ sub defaultValues {
'authChoiceParam' => 'lmAuth',
'authentication' => 'Demo',
'browserIdAuthnLevel' => 1,
'browserIdAutoLogin' => 0,
'browserIdBackgroundColor' => '#000',
'browserIdSiteName' => 'LemonLDAP::NG',
'browserIdVerificationURL' =>
'https://verifier.login.persona.org/verify',
'captcha_login_enabled' => 0,
'captcha_mail_enabled' => 0,
'captcha_register_enabled' => 1,

View File

@ -566,19 +566,23 @@ sub attributes {
'type' => 'int'
},
'browserIdAutoLogin' => {
'type' => 'bool'
'default' => 0,
'type' => 'bool'
},
'browserIdBackgroundColor' => {
'type' => 'text'
'default' => '#000',
'type' => 'text'
},
'browserIdSiteLogo' => {
'type' => 'text'
},
'browserIdSiteName' => {
'type' => 'text'
'default' => 'LemonLDAP::NG',
'type' => 'text'
},
'browserIdVerificationURL' => {
'type' => 'text'
'default' => 'https://verifier.login.persona.org/verify',
'type' => 'text'
},
'captcha_login_enabled' => {
'default' => 0,

View File

@ -2140,11 +2140,11 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
default => 1,
documentation => 'Browser ID authentication level',
},
browserIdAutoLogin => { type => 'bool', },
browserIdVerificationURL => { type => 'text', },
browserIdSiteName => { type => 'text', },
browserIdAutoLogin => { type => 'bool', default => 0 },
browserIdVerificationURL => { type => 'text', default => 'https://verifier.login.persona.org/verify', },
browserIdSiteName => { type => 'text', default => 'LemonLDAP::NG', },
browserIdSiteLogo => { type => 'text', },
browserIdBackgroundColor => { type => 'text', },
browserIdBackgroundColor => { type => 'text', default => '#000', },
# OpenID Connect auth params
oidcAuthnLevel => {

File diff suppressed because one or more lines are too long