Password protection route with Microsoft OAuth

This commit is contained in:
David Bomba 2022-06-25 08:40:29 +10:00
parent 296c6a56a8
commit 3266af0db5

View File

@ -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);