Skip to content

Commit 2949e16

Browse files
committed
Update signup.js
1 parent c9c4412 commit 2949e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/routers/signup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module.exports = eggspress(['/signup'], {
189189
const svc_cleanEmail = req.services.get('clean-email');
190190
const clean_email = svc_cleanEmail.clean(req.body.email);
191191

192-
if (clean_email !== '' && ! await svc_cleanEmail.validate(clean_email) ) {
192+
if (clean_email !== '' && !req.body.is_temp && ! await svc_cleanEmail.validate(clean_email) ) {
193193
return res.status(400).send('This email is not allowed.');
194194
}
195195

0 commit comments

Comments
 (0)