Commit 4cde65c8 authored by Yadd's avatar Yadd
Browse files

Set default values for BrowserID parameters (#595)

parent 4ec26d5f
......@@ -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,
......
......@@ -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,
......
......@@ -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 => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment