From 6ec74bc4328dbbba1c481755b78ba012265eaeda Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 11 Sep 2016 09:51:40 -0600 Subject: [PATCH] Update authentication.php Make the database the default authentication plugin if the default setting -> authentication is not set. --- core/authentication/resources/classes/authentication.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 18016550f9..2a500623b8 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -53,6 +53,11 @@ class authentication { $this->get_domain(); } + //set the database as the default plugin + if (!isset($_SESSION['authentication']['methods'])) { + $_SESSION['authentication']['methods'][] = 'database'; + } + //use the authentication plugins foreach ($_SESSION['authentication']['methods'] as $name) { $class_name = "plugin_".$name;