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:
parent
263ae4f3ac
commit
e8b3fff483
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user