Merge pull request #1750 from YunoHost/allow-dots-in-username

Allow dots in usernames
This commit is contained in:
Alexandre Aubin 2023-12-21 15:28:04 +01:00 committed by GitHub
commit 5daf33f58e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ user:
help: The unique username to create
extra:
pattern: &pattern_username
- !!str ^[a-z0-9_]+$
- !!str ^[a-z0-9_\.]+$
- "pattern_username"
-F:
full: --fullname

View file

@ -38,7 +38,7 @@ from yunohost.utils.system import binary_to_human
logger = getActionLogger("yunohost.user")
FIELDS_FOR_IMPORT = {
"username": r"^[a-z0-9_]+$",
"username": r"^[a-z0-9_.]+$",
"firstname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
"lastname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
"password": r"^|(.{3,})$",