fix(signup): refuse shell usernames Incus can't use #39

Open
thelion wants to merge 0 commits from thelion/shell-username-no-underscore into main AGit
Owner

A shell's username becomes its Linux login and its Incus container
(shells-), which can't contain "", and the portal login can't
contain "-". !shell now only accepts 2-31 letters and digits starting
with a letter. Anything else gets a reply saying what is valid, with a
cleaned-up name to try (or an example). Existing accounts whose names
have "
" can't add a shell under that name either. Bouncer sign-ups
are unchanged.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

A shell's username becomes its Linux login and its Incus container (shells-<name>), which can't contain "_", and the portal login can't contain "-". !shell now only accepts 2-31 letters and digits starting with a letter. Anything else gets a reply saying what is valid, with a cleaned-up name to try (or an example). Existing accounts whose names have "_" can't add a shell under that name either. Bouncer sign-ups are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(signup): refuse shell usernames Incus can't use
All checks were successful
Release / release (push) Successful in 11m11s
cbad8067dc
A shell's username becomes its Linux login and its Incus container
(shells-<name>), which can't contain "_", and the portal login can't
contain "-". !shell now only accepts 2-31 letters and digits starting
with a letter. Anything else gets a reply saying what is valid, with a
cleaned-up name to try (or an example). Existing accounts whose names
have "_" can't add a shell under that name either. Bouncer sign-ups
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All checks were successful
Release / release (push) Successful in 11m11s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin +refs/pull/39/head:thelion/shell-username-no-underscore
git switch thelion/shell-username-no-underscore

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff thelion/shell-username-no-underscore
git switch thelion/shell-username-no-underscore
git rebase main
git switch main
git merge --ff-only thelion/shell-username-no-underscore
git switch thelion/shell-username-no-underscore
git rebase main
git switch main
git merge --no-ff thelion/shell-username-no-underscore
git switch main
git merge --squash thelion/shell-username-no-underscore
git switch main
git merge --ff-only thelion/shell-username-no-underscore
git switch main
git merge thelion/shell-username-no-underscore
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ircforever/managebot!39
No description provided.