Fixed OAuth bug
This commit is contained in:
parent
a018f2532d
commit
671d524688
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ $utopia->get('/v1/auth/oauth/:provider/redirect')
|
|||
],
|
||||
]);
|
||||
|
||||
if (empty($user->getUid())) { // Last option -> create user alone, generate random password
|
||||
if (!$user || empty($user->getUid())) { // Last option -> create user alone, generate random password
|
||||
Authorization::disable();
|
||||
|
||||
$user = $projectDB->createDocument([
|
||||
|
|
Loading…
Reference in a new issue