From 1180401d813f062cdd875aa326bb739f8167ac42 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 16 Sep 2021 10:58:46 -0400 Subject: [PATCH] clean up logging, problem solved --- account/src/middleware/setup-passport.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/account/src/middleware/setup-passport.ts b/account/src/middleware/setup-passport.ts index 915df0e..b2778a5 100644 --- a/account/src/middleware/setup-passport.ts +++ b/account/src/middleware/setup-passport.ts @@ -79,10 +79,8 @@ function setupPassport(passport: PassportStatic) { if (user) return done (null, user); // if the person used their google email for a plain signup, add the google provider to it and sign in const googleMail = getEmailFromGoogleProfile(gProfile); - console.log("google mail is", googleMail.email) if (googleMail.email) { const otherAccountWSameEmail = await getLingdocsUser("email", googleMail.email); - console.log("user with same gmail email:", otherAccountWSameEmail?.name); if (otherAccountWSameEmail) { await updateLingdocsUser(otherAccountWSameEmail.userId, { google: gProfile }); return done(null, otherAccountWSameEmail);