diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000000..51f9764463 Binary files /dev/null and b/dump.rdb differ diff --git a/public/src/client/register.js b/public/src/client/register.js index d8144d26d5..43cf83060a 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -121,6 +121,8 @@ define('forum/register', [ username_notify.text(''); const usernameInput = $('#username'); const userslug = slugify(username); + const suffix = 'suffix'; + if (username.length < ajaxify.data.minimumUsernameLength || userslug.length < ajaxify.data.minimumUsernameLength) { showError(usernameInput, username_notify, '[[error:username-too-short]]'); } else if (username.length > ajaxify.data.maximumUsernameLength) { @@ -135,7 +137,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 suggestedUsername = username + suffix; + showError(usernameInput, username_notify, `[[error:username-taken]]. Maybe try: ${suggestedUsername}`); } callback();