diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index dd214f562..eb020202b 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -724,7 +724,7 @@ App::patch('/v1/teams/:teamId/memberships/:membershipId/status') ->setAttribute('confirm', true) ; - $user->setAttribute('emailVerification', true); + $user = $dbForProject->updateDocument('users', $user->getId(), $user->setAttribute('emailVerification', true)); // Log user in