Skip to content

Commit

Permalink
Add suggesting username when input username is taken
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-elzeni authored Sep 12, 2024
1 parent 78c9ee7 commit f1502fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\"');

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Unexpected string concatenation of literals

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Unexpected string concatenation of literals

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Strings must use singlequote

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Unnecessary escape character: \"
}

callback();
Expand Down

0 comments on commit f1502fd

Please sign in to comment.