From 806015fdce17731a88e9c3fc6336fdb6a8b46f0e Mon Sep 17 00:00:00 2001 From: Haneen Date: Sun, 21 Sep 2025 12:57:04 +0000 Subject: [PATCH 1/2] added suggestion for username if already taken --- public/src/client/register.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index f989901e7b..c794137674 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -135,7 +135,8 @@ define('forum/register', [ if (results.every(obj => obj.status === 'rejected')) { showSuccess(usernameInput, username_notify, successIcon); } else { - showError(usernameInput, username_notify, '[[error:username-taken]]'); + const suggestion = username + 'suffix'; + showError(usernameInput, username_notify, `[[error:username-taken]] Try "${suggestion}" instead.`); } callback(); From 762c27b2c74cb4e999671875368cc1a6983a3e78 Mon Sep 17 00:00:00 2001 From: Haneen Date: Sun, 21 Sep 2025 13:02:14 +0000 Subject: [PATCH 2/2] Minor fix in the username file --- public/src/client/register.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/src/client/register.js b/public/src/client/register.js index c794137674..f897994c0a 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -34,6 +34,8 @@ define('forum/register', [ } }); + // Added a comment + password.on('blur', function () { if (password.val().length) { validatePassword(password.val(), password_confirm.val());