From 3266af0db5c0661f6774c2ec9b15a545ac2d4f42 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 25 Jun 2022 08:40:29 +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 ea702b3f0a65..456bb3cf9d77 100644 --- a/app/Http/Middleware/PasswordProtection.php +++ b/app/Http/Middleware/PasswordProtection.php @@ -105,7 +105,7 @@ class PasswordProtection return response()->json(['message' => 'Could not decode the response from Microsoft'], 412); } - if($payload->preferred_username == auth()->user()->email)){ + if($payload->preferred_username == auth()->user()->email){ Cache::put(auth()->user()->hashed_id.'_'.auth()->user()->account_id.'_logged_in', Str::random(64), $timeout); return $next($request);