Skip to content

Commit 1418300

Browse files
committed
fix: fixed spam
1 parent a588507 commit 1418300

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/web/support.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ async function help(ctx) {
3838
body.is_email_only = true;
3939
}
4040

41+
// massive spam IP attack (temp removal)
42+
if (body.message === 'Muchas gracias. ?Como puedo iniciar sesion?')
43+
throw Boom.badRequest(ctx.translateError('SUPPORT_REQUEST_LIMIT'));
44+
4145
// check if we already sent a support request in the past day
4246
// with this given ip address or email, otherwise create and email
4347
const count = await Inquiries.countDocuments({

0 commit comments

Comments
 (0)