From 90e66cbd94f68cd43cbb427c8a114e3425a78aa0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 8 Jan 2016 18:51:10 +0100 Subject: [PATCH] Remove session guard. --- app/Http/Controllers/Auth/AuthController.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php index 2ff6fde373..29d0374bf3 100755 --- a/app/Http/Controllers/Auth/AuthController.php +++ b/app/Http/Controllers/Auth/AuthController.php @@ -3,7 +3,6 @@ namespace FireflyIII\Http\Controllers\Auth; use Auth; -use Config; use FireflyIII\Http\Controllers\Controller; use FireflyIII\Models\Role; use FireflyIII\User; @@ -16,25 +15,11 @@ use Log; use Mail; use Request as Rq; use Session; -use Twig; use Validator; class AuthController extends Controller { - protected $guard = 'session'; - - /* - |-------------------------------------------------------------------------- - | Registration & Login Controller - |-------------------------------------------------------------------------- - | - | This controller handles the registration of new users, as well as the - | authentication of existing users. By default, this controller uses - | a simple trait to add these behaviors. Why don't you explore it? - | - */ - use AuthenticatesAndRegistersUsers, ThrottlesLogins; /** @@ -44,7 +29,6 @@ class AuthController extends Controller */ protected $redirectTo = '/home'; - /** * Create a new authentication controller instance. * @@ -266,7 +250,7 @@ class AuthController extends Controller */ protected function getBlockedDomains() { - $set = explode(',',env('BLOCKED_DOMAINS','')); + $set = explode(',', env('BLOCKED_DOMAINS', '')); $domains = []; foreach ($set as $entry) { $domain = trim($entry); @@ -294,5 +278,4 @@ class AuthController extends Controller return false; } - }