mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 12:50:59 +00:00
Update signup.js
This commit is contained in:
@@ -189,8 +189,8 @@ module.exports = eggspress(['/signup'], {
|
||||
const svc_cleanEmail = req.services.get('clean-email');
|
||||
const clean_email = svc_cleanEmail.clean(req.body.email);
|
||||
|
||||
if ( ! await svc_cleanEmail.validate(clean_email) ) {
|
||||
return res.status(400).send('This email domain is not allowed');
|
||||
if (clean_email !== '' && ! await svc_cleanEmail.validate(clean_email) ) {
|
||||
return res.status(400).send('This email is not allowed.');
|
||||
}
|
||||
|
||||
// duplicate username check
|
||||
|
||||
Reference in New Issue
Block a user