From 8e96b4c7ea735baf29c1ce5da3ae385be4da6ba9 Mon Sep 17 00:00:00 2001 From: viperaus <3999059+viperaus@users.noreply.github.com> Date: Thu, 23 May 2024 20:32:30 +1000 Subject: [PATCH] Update auth.js Don't remove gmail "sub-addresses" which is the part following a "+" sign --- src/controllers/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/auth.js b/src/controllers/auth.js index 20ddc35..80600e9 100644 --- a/src/controllers/auth.js +++ b/src/controllers/auth.js @@ -45,6 +45,7 @@ export const login = (req, res, next) => { } req.body.username = validator.normalizeEmail(req.body.username, { gmail_remove_dots: false, + gmail_remove_subaddress: false }); passport.authenticate("local", (err, user, info) => {