Better naming ? :s

This commit is contained in:
Alexandre Aubin 2020-09-23 21:46:31 +02:00
parent 9a4ba0bfe1
commit c0234a75f5
2 changed files with 8 additions and 8 deletions

View file

@ -103,9 +103,9 @@ user:
extra:
ask: ask_email
required: True
pattern: &pattern_email_without_plus
pattern: &pattern_email
- !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$
- "pattern_email_without_plus"
- "pattern_email"
-p:
full: --password
help: User password
@ -164,7 +164,7 @@ user:
-m:
full: --mail
extra:
pattern: *pattern_email_without_plus
pattern: *pattern_email
-p:
full: --change-password
help: New password to set
@ -176,9 +176,9 @@ user:
nargs: "*"
metavar: MAIL
extra:
pattern: &pattern_email
pattern: &pattern_email_forward
- !!str ^[\w\+.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$
- "pattern_email"
- "pattern_email_forward"
--remove-mailforward:
help: Mailforward addresses to remove
nargs: "*"
@ -188,7 +188,7 @@ user:
nargs: "*"
metavar: MAIL
extra:
pattern: *pattern_email_without_plus
pattern: *pattern_email
--remove-mailalias:
help: Mail aliases to remove
nargs: "*"

View file

@ -468,8 +468,8 @@
"password_too_simple_4": "The password needs to be at least 12 characters long and contain a digit, upper, lower and special characters",
"pattern_backup_archive_name": "Must be a valid filename with max 30 characters, alphanumeric and -_. characters only",
"pattern_domain": "Must be a valid domain name (e.g. my-domain.org)",
"pattern_email": "Must be a valid e-mail address, '+' symbol accepted(e.g. someone+tag@example.com)",
"pattern_email_without_plus": "Must be a valid e-mail address without '+' symbol (e.g. someone@example.com)",
"pattern_email_forward": "Must be a valid e-mail address, '+' symbol accepted (e.g. someone+tag@example.com)",
"pattern_email": "Must be a valid e-mail address, without '+' symbol (e.g. someone@example.com)",
"pattern_firstname": "Must be a valid first name",
"pattern_lastname": "Must be a valid last name",
"pattern_mailbox_quota": "Must be a size with b/k/M/G/T suffix or 0 to not have a quota",