From e8b3fff483a4c73e94473031cf5addd16f7948b0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 25 Jun 2022 08:31:19 +1000 Subject: [PATCH] Password protection route with Microsoft OAuth --- app/Http/Middleware/PasswordProtection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/PasswordProtection.php b/app/Http/Middleware/PasswordProtection.php index 46f2df86eb17..412a53d29f2d 100644 --- a/app/Http/Middleware/PasswordProtection.php +++ b/app/Http/Middleware/PasswordProtection.php @@ -106,7 +106,7 @@ class PasswordProtection ->setReturnType(Model\User::class) ->execute(); - if($user && ($user->getId() == auth()->user()->oauth_user_id){ + if($user && ($user->getId() == auth()->user()->oauth_user_id)){ Cache::put(auth()->user()->hashed_id.'_'.auth()->user()->account_id.'_logged_in', Str::random(64), $timeout); return $next($request);