mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1750 from YunoHost/allow-dots-in-username
Allow dots in usernames
This commit is contained in:
commit
5daf33f58e
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ user:
|
||||||
help: The unique username to create
|
help: The unique username to create
|
||||||
extra:
|
extra:
|
||||||
pattern: &pattern_username
|
pattern: &pattern_username
|
||||||
- !!str ^[a-z0-9_]+$
|
- !!str ^[a-z0-9_\.]+$
|
||||||
- "pattern_username"
|
- "pattern_username"
|
||||||
-F:
|
-F:
|
||||||
full: --fullname
|
full: --fullname
|
||||||
|
|
|
@ -38,7 +38,7 @@ from yunohost.utils.system import binary_to_human
|
||||||
logger = getActionLogger("yunohost.user")
|
logger = getActionLogger("yunohost.user")
|
||||||
|
|
||||||
FIELDS_FOR_IMPORT = {
|
FIELDS_FOR_IMPORT = {
|
||||||
"username": r"^[a-z0-9_]+$",
|
"username": r"^[a-z0-9_.]+$",
|
||||||
"firstname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
|
"firstname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
|
||||||
"lastname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
|
"lastname": r"^([^\W\d_]{1,30}[ ,.\'-]{0,3})+$",
|
||||||
"password": r"^|(.{3,})$",
|
"password": r"^|(.{3,})$",
|
||||||
|
|
Loading…
Add table
Reference in a new issue