From 1644076abedb9cb4d190adc8868ffa445a9171a3 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Mon, 13 Jul 2020 09:03:59 +0800 Subject: [PATCH] =?UTF-8?q?Guard=20=E6=9C=AA=E8=AE=BE=E7=BD=AE=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/CatchAuth.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extend/catcher/CatchAuth.php b/extend/catcher/CatchAuth.php index 60fce14..7ce8d62 100644 --- a/extend/catcher/CatchAuth.php +++ b/extend/catcher/CatchAuth.php @@ -173,6 +173,10 @@ class CatchAuth */ protected function getProvider() { + if (!isset($this->auth['guards'][$this->guard])) { + throw new FailedException('Auth Guard Not Found'); + } + return $this->auth['providers'][$this->auth['guards'][$this->guard]['provider']]; }