Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@
if (results.every(obj => obj.status === 'rejected')) {
showSuccess(username_notify, successIcon);
} else {
showError(username_notify, '[[error:username-taken]]');
// Username taken, suggest alternative

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Trailing spaces not allowed
const suggested = username + 'suffix';

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Trailing spaces not allowed
const suggestionMsg = '[[error:username-taken]]<br>Suggested: <span class="username-suggestion">' + suggested + '</span>';

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Trailing spaces not allowed
showError(username_notify, suggestionMsg);
}

callback();
Expand Down
Loading