Password protection route with Microsoft OAuth
This commit is contained in:
parent
263ae4f3ac
commit
e8b3fff483
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue