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
4 changes: 3 additions & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Edited by Cursor AI: Suggest a username with a numeric suffix if taken (English-only UI).
'use strict';

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Expected newline before "use strict" directive


define('forum/register', [
Expand Down Expand Up @@ -131,7 +132,8 @@
if (results.every(obj => obj.status === 'rejected')) {
showSuccess(username_notify, successIcon);
} else {
showError(username_notify, '[[error:username-taken]]');
const suggestion = username + '1';
showError(username_notify, 'This username is taken. Try "' + suggestion + '"');
}

callback();
Expand Down
Loading