ACTUALLY fix blacklisting

This commit is contained in:
2026-05-14 13:39:55 -04:00
parent e1c9508ed3
commit 03bf12ec07
6 changed files with 14 additions and 13 deletions
+2 -2
View File
@@ -58,13 +58,13 @@ router.post('/domains/new', authMw.AllowIfAuthenticated, async(req, res, next) =
// Make sure domain is valid
const domainLabel = reqBody.register_domain_label;
const domainTLD = reqBody.register_domain_tld;
const fullDomain = domainLabel + "." + domainLabel;
const fullDomain = domainLabel + "." + domainTLD;
if(validationError !== undefined)
errors = validationError.details;
if(blacklistedDomains.includes(fullDomain.toLowerCase())) {
errors.push('Domain is not available.');
errors.push({message: 'Domain is not available.'});
}
try {