Update user.py

Allowed dots to be used in creating username
This commit is contained in:
YapWC 2023-12-19 10:13:03 +08:00 committed by GitHub
parent 770fdb6861
commit 5738526349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,})$",