From 6660d7feb7ce0fadb14a304cbeb3f745742bfa83 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 2 Jan 2022 20:55:10 +0100 Subject: [PATCH] [bug] fix profile verification case sensitive --- server/routes/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/profile.js b/server/routes/profile.js index 5f04ef7a3..5184173a9 100644 --- a/server/routes/profile.js +++ b/server/routes/profile.js @@ -32,7 +32,7 @@ const verifyLinks = (links, authenticators) => { for (let provider of providersWithLinks) { for (let a of authenticators) { if (a.type !== provider) { continue; } - const regex = new RegExp(socialProviders[a.type].linkRegex(JSON.parse(a.payload))); + const regex = new RegExp(socialProviders[a.type].linkRegex(JSON.parse(a.payload)), 'i'); for (let link of links) { if (link.match(regex)) { verifiedLinks[link] = provider;