diff --git a/share/actionsmap.yml b/share/actionsmap.yml index 464a4e024..9382c70f3 100644 --- a/share/actionsmap.yml +++ b/share/actionsmap.yml @@ -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 diff --git a/src/user.py b/src/user.py index 00876854e..4ad23525a 100644 --- a/src/user.py +++ b/src/user.py @@ -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,})$",