mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-10 16:03:01 +00:00
Update signup.js
This commit is contained in:
1 parent
c9c441210b
commit
2949e16be2
1 file changed
+1
-1
@@ -189,7 +189,7 @@ module.exports = eggspress(['/signup'], {
|
||||
const svc_cleanEmail = req.services.get('clean-email');
|
||||
const clean_email = svc_cleanEmail.clean(req.body.email);
|
||||
|
||||
if (clean_email !== '' && ! await svc_cleanEmail.validate(clean_email) ) {
|
||||
if (clean_email !== '' && !req.body.is_temp && ! await svc_cleanEmail.validate(clean_email) ) {
|
||||
return res.status(400).send('This email is not allowed.');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user