fix issue where users could bypass username sanity checks with direct urls

This commit is contained in:
zefie
2022-10-22 18:15:15 -04:00
parent 3bedd22517
commit b79ace4b76
3 changed files with 45 additions and 25 deletions

View File

@@ -37,7 +37,6 @@ class WTVRegister {
if (this.minisrv_config.config.user_accounts.reserved_names) {
Object.keys(this.minisrv_config.config.user_accounts.reserved_names).forEach((k) => {
if (self.minisrv_config.config.user_accounts.reserved_names[k].toLowerCase() == username.toLowerCase()) return_val = true;
console.log(self.minisrv_config.config.user_accounts.reserved_names[k].toLowerCase(), username.toLowerCase(), return_val)
})
}