mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
tweak: clarify blocked domain message
This commit is contained in:
parent
955b087297
commit
87f7fc0265
@ -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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user