tweak: clarify blocked domain message

This commit is contained in:
KernelDeimos 2024-10-24 00:57:21 -04:00
parent 955b087297
commit 87f7fc0265

View File

@ -149,7 +149,7 @@ module.exports = eggspress(['/signup'], {
if ( config.blocked_email_domains ) { if ( config.blocked_email_domains ) {
for ( const suffix of config.blocked_email_domains ) { for ( const suffix of config.blocked_email_domains ) {
if ( clean_email.endsWith(suffix) ) { if ( clean_email.endsWith(suffix) ) {
return res.status(400).send('Please enter a valid email address.'); return res.status(400).send('This email domain is not allowed.');
} }
} }
} }