Update authentication.php
Make the database the default authentication plugin if the default setting -> authentication is not set.
This commit is contained in:
parent
d27824cbb7
commit
6ec74bc432
|
|
@ -53,6 +53,11 @@ class authentication {
|
||||||
$this->get_domain();
|
$this->get_domain();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//set the database as the default plugin
|
||||||
|
if (!isset($_SESSION['authentication']['methods'])) {
|
||||||
|
$_SESSION['authentication']['methods'][] = 'database';
|
||||||
|
}
|
||||||
|
|
||||||
//use the authentication plugins
|
//use the authentication plugins
|
||||||
foreach ($_SESSION['authentication']['methods'] as $name) {
|
foreach ($_SESSION['authentication']['methods'] as $name) {
|
||||||
$class_name = "plugin_".$name;
|
$class_name = "plugin_".$name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue