From f1502fd46685187fc68c4db0605ccbd6599f8759 Mon Sep 17 00:00:00 2001 From: Mohamed Elzeni <111191918+mohamed-elzeni@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:48:50 +0300 Subject: [PATCH] Add suggesting username when input username is taken --- public/src/client/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index d8144d26d5..f3f6958b59 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -135,7 +135,7 @@ define('forum/register', [ if (results.every(obj => obj.status === 'rejected')) { showSuccess(usernameInput, username_notify, successIcon); } else { - showError(usernameInput, username_notify, '[[error:username-taken]]'); + showError(usernameInput, username_notify, '[[error:username-taken]]' + '. Maybe try ' + "\"" + username + 'suffix\"'); } callback();