From 37675689f8be605f5a50b2eaef82c7f2ccc7e4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 19 Jan 2026 22:43:39 -0500 Subject: [PATCH] refactor: move username check to createOrQueue --- src/user/approval.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/user/approval.js b/src/user/approval.js index f8470ebb65..15729be36c 100644 --- a/src/user/approval.js +++ b/src/user/approval.js @@ -23,6 +23,7 @@ module.exports = function (User) { }), null, true); User.createOrQueue = async function (req, userData, opts = {}) { + User.checkUsernameLength(userData.username); const queue = await User.shouldQueueUser(req.ip); const result = await plugins.hooks.fire('filter:register.shouldQueue', { req, userData, queue }); if (result.queue) {