mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Password protection route with Microsoft OAuth
This commit is contained in:
parent
296c6a56a8
commit
3266af0db5
@ -105,7 +105,7 @@ class PasswordProtection
|
|||||||
return response()->json(['message' => 'Could not decode the response from Microsoft'], 412);
|
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);
|
Cache::put(auth()->user()->hashed_id.'_'.auth()->user()->account_id.'_logged_in', Str::random(64), $timeout);
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user