1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

Fixed OAuth bug

This commit is contained in:
eldadfux 2019-09-29 01:34:35 +03:00
parent a018f2532d
commit 671d524688

View file

@ -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(); Authorization::disable();
$user = $projectDB->createDocument([ $user = $projectDB->createDocument([