From fc12175ee0dd64b6b6db2a81d531a2ed220ae65b Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 19 Sep 2018 17:05:32 -0500 Subject: [PATCH] Fixed remember me for login (#9233) remember me and AuthenticateSession are incompatible on Laravel 5.4 https://github.com/laravel/framework/commit/6ca154f2b6713da598082cdaf7a1a042fc3e648a More info: https://kfirba.me/blog/the-undocumented-authenticatesession-middleware-decoded DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply `, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert. --- app/Http/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 04bd8d3b88..7954a1575e 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -33,7 +33,7 @@ class Kernel extends HttpKernel \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, - \Illuminate\Session\Middleware\AuthenticateSession::class, +// \Illuminate\Session\Middleware\AuthenticateSession::class, // Works in Laravel 5.5 \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \App\Http\Middleware\LegacyExternalAuth::class,