[bug] fix profile verification case sensitive

This commit is contained in:
Andrea Vos 2022-01-02 20:55:10 +01:00
parent a8d4055a08
commit 6660d7feb7

View File

@ -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;