Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change minimum username length to 2 instead of 4 #1127

Merged
merged 3 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11456,7 +11456,8 @@ const docTemplate = `{
},
"name": {
"type": "string",
"maxLength": 30
"maxLength": 30,
"minLength": 2
},
"pass": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11429,7 +11429,8 @@
},
"name": {
"type": "string",
"maxLength": 30
"maxLength": 30,
"minLength": 2
},
"pass": {
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,7 @@ definitions:
type: string
name:
maxLength: 30
minLength: 2
type: string
pass:
maxLength: 32
Expand Down
4 changes: 2 additions & 2 deletions i18n/af_ZA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/ar_SA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/az_AZ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1123,7 +1123,7 @@ ui:
fields:
display_name:
label: Display Name
msg: display_name must be at 4 - 30 characters in length.
msg: display_name must be at 2 - 30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/bal_BA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1123,7 +1123,7 @@ ui:
fields:
display_name:
label: Display Name
msg: display_name must be at 4 - 30 characters in length.
msg: display_name must be at 2 - 30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/ban_ID.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1123,7 +1123,7 @@ ui:
fields:
display_name:
label: Display Name
msg: display_name must be at 4 - 30 characters in length.
msg: display_name must be at 2 - 30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/bn_BD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1123,7 +1123,7 @@ ui:
fields:
display_name:
label: Display Name
msg: display_name must be at 4 - 30 characters in length.
msg: display_name must be at 2 - 30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/bs_BA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1123,7 +1123,7 @@ ui:
fields:
display_name:
label: Display Name
msg: display_name must be at 4 - 30 characters in length.
msg: display_name must be at 2 - 30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/ca_ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/cs_CZ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Please enter the user's email, one per line."
display_name:
label: Display name
msg: Display name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/cy_GB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Please enter the user's email, one per line."
display_name:
label: Display name
msg: Display name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/da_DK.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Navn
msg:
empty: Navn må ikke være tomt.
range: Navnet skal være mellem 4 og 30 tegn.
range: Navnet skal være mellem 2 og 30 tegn.
character: 'Skal bruge tegnsættet "a-z", "A-Z", "0-9", " - . _"'
email:
label: E-mail
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Indtast venligst brugerens e-mail, en pr. linje."
display_name:
label: Visnings-navn
msg: Vis navn skal være på 4-30 tegn.
msg: Vis navn skal være på 2-30 tegn.
email:
label: E-mail
msg: E-mail er ugyldig.
Expand Down
4 changes: 2 additions & 2 deletions i18n/de_DE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Name
msg:
empty: Der Name darf nicht leer sein.
range: Die Länge des Namens sollte zwischen 4 und 30 Zeichen liegen.
range: Die Länge des Namens sollte zwischen 2 und 30 Zeichen liegen.
character: 'Muss den Zeichensatz "a-z", "A-Z", "0-9", " - . _" verwenden'
email:
label: E-Mail
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Bitte gib die E-Mail des Nutzers ein, eine pro Zeile."
display_name:
label: Anzeigename
msg: Der Anzeigename muss zwischen 4 und 30 Zeichen lang sein.
msg: Der Anzeigename muss zwischen 2 und 30 Zeichen lang sein.
email:
label: E-Mail
msg: Die E-Mail ist nicht gültig.
Expand Down
4 changes: 2 additions & 2 deletions i18n/el_GR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/en_US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1848,7 +1848,7 @@ ui:
msg: "Please enter the user's email, one per line."
display_name:
label: Display name
msg: Display name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/es_ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Nombre
msg:
empty: El nombre no puede estar vacío.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Correo electrónico
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Por favor, introduzca el correo electrónico del usuario, uno por línea."
display_name:
label: Nombre público
msg: El nombre público debe tener entre 4 y 30 caracteres de longitud.
msg: El nombre público debe tener entre 2 y 30 caracteres de longitud.
email:
label: Correo
msg: El correo no es válido.
Expand Down
4 changes: 2 additions & 2 deletions i18n/fa_IR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: نام
msg:
empty: نام نمی‌تواند خالی باشد.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: ایمیل
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "لطفا ایمیل کاربر را در هر خط یکی وارد کنید."
display_name:
label: نمایش نام
msg: نام نمایشی باید 4 تا 30 کاراکتر باشد.
msg: نام نمایشی باید 2 تا 30 کاراکتر باشد.
email:
label: ایمیل
msg: ایمیل معتبر نمی‌باشد
Expand Down
4 changes: 2 additions & 2 deletions i18n/fi_FI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
6 changes: 3 additions & 3 deletions i18n/fr_FR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Nom
msg:
empty: Le nom ne peut pas être vide.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1610,7 +1610,7 @@ ui:
site_name:
label: Nom du site
msg: Le nom ne peut pas être vide.
msg_max_length: Le nom affiché doit avoir une longueur de 4 à 30 caractères.
msg_max_length: Le nom affiché doit avoir une longueur de 2 à 30 caractères.
site_url:
label: URL du site
text: L'adresse de ce site.
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Veuillez entrer l'email de l'utilisateur, un par ligne."
display_name:
label: Nom affiché
msg: Le nom affiché doit avoir une longueur de 4 à 30 caractères.
msg: Le nom affiché doit avoir une longueur de 2 à 30 caractères.
email:
label: Email
msg: L'email n'est pas valide.
Expand Down
4 changes: 2 additions & 2 deletions i18n/he_IL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Name must between 4 to 30 characters in length.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1136,7 +1136,7 @@ ui:
fields:
display_name:
label: Display Name
msg: Display Name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
4 changes: 2 additions & 2 deletions i18n/hi_IN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ ui:
label: Name
msg:
empty: Name cannot be empty.
range: Length of name should between 4 to 30 characters.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
email:
label: Email
Expand Down Expand Up @@ -1816,7 +1816,7 @@ ui:
msg: "Please enter the user's email, one per line."
display_name:
label: Display name
msg: Display name must be at 4-30 characters in length.
msg: Display name must be 2-30 characters in length.
email:
label: Email
msg: Email is not valid.
Expand Down
Loading