From d7b1d9829f2c974d831cf8e6706cd0cac9e8cefb Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:56:06 -0600 Subject: [PATCH] fix: added arbitrary stripe block --- app/models/users.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/users.js b/app/models/users.js index e2a2d998b..1466a3acc 100644 --- a/app/models/users.js +++ b/app/models/users.js @@ -489,6 +489,11 @@ Users.pre('validate', async function (next) { // Plan expires at should get updated everytime the user is saved Users.pre('save', async function (next) { const user = this; + + // arbitrary block due to stripe spam unresolved in november 2024 + if (typeof user.email === 'string' && user.email.startsWith('hbrzi')) + return next(new Error('Try again later')); + // If user has a paid plan then consider their email verified if (user.plan !== 'free') user[config.userFields.hasVerifiedEmail] = true;