Skip to content
Snippets Groups Projects
Commit e71b0ef7 authored by Guy Brand's avatar Guy Brand Committed by Andreas Gohr
Browse files

backward compatibility for old authtype settings

parent 8b5e2fdb
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,15 @@ function auth_setup() {
// try to load auth backend from plugins
foreach ($plugin_controller->getList('auth') as $plugin) {
if ($conf['authtype'] === $plugin) {
$auth = $plugin_controller->load('auth', $plugin);
break;
}
if ($conf['authtype'] === $plugin) {
$auth = $plugin_controller->load('auth', $plugin);
break;
} elseif ('auth' . $conf['authtype'] === $plugin) {
// matches old auth backends (pre-Weatherwax)
$auth = $plugin_controller->load('auth', $plugin);
msg('Your authtype setting is deprecated. You must set $conf[\'authconfig\'] = ' . "auth" . $conf['authtype']
. ' in your config (see <a href="https://www.dokuwiki.org/auth">Authentication Backends</a>)',-1);
}
}
if(!isset($auth) || !$auth){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment