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
263ae4f3ac
commit
e8b3fff483
@ -106,7 +106,7 @@ class PasswordProtection
|
|||||||
->setReturnType(Model\User::class)
|
->setReturnType(Model\User::class)
|
||||||
->execute();
|
->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);
|
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