1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Password protection route with Microsoft OAuth

This commit is contained in:
David Bomba 2022-06-25 08:31:19 +10:00
parent 263ae4f3ac
commit e8b3fff483

View File

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