Skip to content
Snippets Groups Projects
Commit 691bf315 authored by Demian Katz's avatar Demian Katz
Browse files

Adjusted default authentication configuration to correspond with class names.

parent ca5a511d
No related merge requests found
......@@ -149,12 +149,12 @@ renewals_enabled = false
title_level_holds_mode = "disabled"
; This section allows you to determine how the users will authenticate.
; You can use an LDAP directory, the local ILS, the VuFind database (DB),
; You can use an LDAP directory, the local ILS, the VuFind database (Database),
; Shibboleth, SIP2 or some combination of these (via the MultiAuth option).
[Authentication]
;method = LDAP
;method = ILS
method = DB
method = Database
;method = Shibboleth
;method = SIP2
;method = MultiAuth
......
......@@ -374,6 +374,14 @@ class Upgrade
$this->checkTheme('theme', 'blueprint');
$this->checkTheme('mobile_theme', 'jquerymobile');
// Translate legacy auth settings:
if (strtolower($newConfig['Authentication']['method']) == 'db') {
$newConfig['Authentication']['method'] = 'Database';
}
if (strtolower($newConfig['Authentication']['method']) == 'sip') {
$newConfig['Authentication']['method'] = 'SIP2';
}
// Translate legacy session settings:
$newConfig['Session']['type'] = ucwords(
str_replace('session', '', strtolower($newConfig['Session']['type']))
......
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