Skip to content

Commit

Permalink
ssh: allow the '.' and '@' character in user names
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jul 3, 2024
1 parent be43e59 commit 9b4c351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cm4all-lukko (0.24) unstable; urgency=low

*
* ssh: allow the '.' and '@' character in user names

--

Expand Down
2 changes: 1 addition & 1 deletion src/Connection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static bool
IsValidUsername(std::string_view username) noexcept
{
return username.size() <= 255 && CheckCharsNonEmpty(username, [](char ch){
return IsAlphaNumericASCII(ch) || ch == '-' || ch == '_';
return IsAlphaNumericASCII(ch) || ch == '-' || ch == '_' || ch == '.' || ch == '@';
});
}

Expand Down

0 comments on commit 9b4c351

Please sign in to comment.