You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constlocalAccountResult=awaitdb.query("SELECT 1 FROM users WHERE LOWER(email) = $1 AND password IS NOT NULL AND is_deleted IS FALSE;",[normalizedProfileEmail]);
301
305
if(localAccountResult.rowCount){
302
306
returnres.status(400).send(newServerResponse(false,null,`No Google account exists for email ${profile.email}.`));
303
307
}
304
308
305
309
// Check if user exists
306
310
constuserResult=awaitdb.query(
307
-
"SELECT id, google_id, name, email, active_team FROM users WHERE google_id = $1 OR email = $2;",
308
-
[profile.sub,profile.email]
311
+
"SELECT id, google_id, name, email, active_team FROM users WHERE google_id = $1 OR LOWER(email) = $2;",
0 commit comments