From 8573d86a104707cd2fd7cc49b25978c2e6b717e2 Mon Sep 17 00:00:00 2001 From: MGatner Date: Thu, 27 Jun 2019 16:22:44 -0400 Subject: [PATCH] Check for and prioritize user config file --- src/Controllers/AuthController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Controllers/AuthController.php b/src/Controllers/AuthController.php index 0a52510d..16c5551c 100644 --- a/src/Controllers/AuthController.php +++ b/src/Controllers/AuthController.php @@ -26,7 +26,15 @@ public function __construct() // the session to be started - so fire it up! $this->session = Services::session(); - $this->config = config(Auth::class); + // prioritizes user config in app/Config if found + if (class_exists('\Config\Auth')) + { + $this->config = new \Config\Auth(); + } + else + { + $this->config = config(Auth::class); + } $this->auth = Services::authentication(); }