@julian src/slugify.js requires public/src/modules/slugify, so I changes the slugify function in that file to
return function slugify(str, preserveCase) {
if (!str) {
return '';
}
str = String(str).replace(trimRegex, '');
if (isLatin.test(str)) {
str = str.replace(invalidLatinChars, '_');
} else {
str = XRegExp.replace(str, invalidUnicodeChars, '_');
}
str = !preserveCase ? str.toLocaleLowerCase() : str;
str = str.replace(collapseWhitespace, '_');
str = str.replace(collapseDash, '_');
str = str.replace(trimTrailingDash, '');
str = str.replace(trimLeadingDash, '');
return str;
};
, basically replaced the dashes with underscore. I then stopped my current instance, upgraded it and then started it. However, now I registered a user using the google-sso plugin and again it has a dash in username instead of underscore. I guess we need to log the username somewhere in the plugin/core nodebb to find the problem. Which would be the best place for doing so?