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

Allow logins with "-" #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*~
2 changes: 1 addition & 1 deletion lib/Act/Handler/User/Create.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ my $form = Act::Form->new(
tshirt => sub { uc shift },
},
constraints => {
login => sub { $_[0] =~ /^[A-Za-z0-9_]{3,}$/ },
login => sub { $_[0] =~ /^[-A-Za-z0-9_]{3,}$/ },
email => 'email',
tshirt => sub { $_[0] =~ /^(?:X?S|M|[456]?X{0,3}LT?)(?: \(W\))?$/ },
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Act/Handler/User/Register.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ my $form = Act::Form->new(
tshirt => sub { uc shift },
},
constraints => {
login => sub { $_[0] =~ /^[A-Za-z0-9_]{3,}$/ },
login => sub { $_[0] =~ /^[-A-Za-z0-9_]{3,}$/ },
email => 'email',
tshirt => sub { $_[0] =~ /^(?:X?S|M|[456]?X{0,3}LT?)(?: \(W\))?$/ },
}
Expand Down
2 changes: 1 addition & 1 deletion po/be.po
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ msgid "The address is already registered."
msgstr "Адрас %1 ужо зарэгістраваны."

msgid "Your identifier must contain at least 3 characters"
msgstr "Ваш ідэнтыфікатар павінен складацца як мінімум з трох сімвалаў і змяшчаць только лацінскія літары і лічбы (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Ваш ідэнтыфікатар павінен складацца як мінімум з трох сімвалаў і змяшчаць только лацінскія літары і лічбы (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Неабходна ўвесці імя"
Expand Down
2 changes: 1 addition & 1 deletion po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ msgid "The address is already registered."
msgstr "Die Adresse %1 ist bereits registriert."

msgid "Your identifier must contain at least 3 characters"
msgstr "Die Benutzer-ID muss mindestens 3 Zeichen enthalten und darf nur aus alphanumerischen Zeichen bestehen (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Die Benutzer-ID muss mindestens 3 Zeichen enthalten und darf nur aus alphanumerischen Zeichen bestehen (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Bitte Vornamen eingeben"
Expand Down
2 changes: 1 addition & 1 deletion po/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ msgid "The address is already registered."
msgstr "The address %1 is already registered."

msgid "Your identifier must contain at least 3 characters"
msgstr "Your identifier must contain at least 3 characters and only contain alphanumeric characters (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Your identifier must contain at least 3 characters and only contain alphanumeric characters (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "You must enter your first name"
Expand Down
2 changes: 1 addition & 1 deletion po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ msgid "The address is already registered."
msgstr "La dirección %1 ya está registrada."

msgid "Your identifier must contain at least 3 characters"
msgstr "El identificador debe contener al menos 3 caracteres y sólo puede contener caracteres alfanuméricos (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "El identificador debe contener al menos 3 caracteres y sólo puede contener caracteres alfanuméricos (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Debe escribir su nombre"
Expand Down
2 changes: 1 addition & 1 deletion po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ msgid "The address is already registered."
msgstr "L'adresse %1 est déjà enregistrée."

msgid "Your identifier must contain at least 3 characters"
msgstr "Votre identifiant doit contenir au moins 3 caractères alphanumériques (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Votre identifiant doit contenir au moins 3 caractères alphanumériques (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Le prénom est obligatoire"
Expand Down
2 changes: 1 addition & 1 deletion po/he.po
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ msgid "The address is already registered."
msgstr "התכובת %1 כבר רשומה."

msgid "Your identifier must contain at least 3 characters"
msgstr "השם המזהה חייב להכיל לפחות 3 תווים ועל כולם להיות תווים אלפאנומריים (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "השם המזהה חייב להכיל לפחות 3 תווים ועל כולם להיות תווים אלפאנומריים (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "יש להזין את השם הפרטי"
Expand Down
2 changes: 1 addition & 1 deletion po/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ msgid "The address is already registered."
msgstr "Adresa %1 je već registrirana"

msgid "Your identifier must contain at least 3 characters"
msgstr "Vaša oznaka mora sadržavati najmanje tri slova i može sadržavati samo alfanumerike (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Vaša oznaka mora sadržavati najmanje tri slova i može sadržavati samo alfanumerike (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Morate unijeti vaše ime"
Expand Down
2 changes: 1 addition & 1 deletion po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ msgid "The address is already registered."
msgstr "%1 email cím már foglalt."

msgid "Your identifier must contain at least 3 characters"
msgstr "Az azonosítónak legalább 3 betûbõl kell állnia és csak alfanumerikus karaktereket tartalmazhat (<tt>[a-zA-Z0-9_]</tt>)."
msgstr "Az azonosítónak legalább 3 betûbõl kell állnia és csak alfanumerikus karaktereket tartalmazhat (<tt>[-a-zA-Z0-9_]</tt>)."

msgid "You must enter your first name"
msgstr "A keresztnév megadása kötelezõ."
Expand Down
2 changes: 1 addition & 1 deletion po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ msgstr "L'indirizzo %1 è già iscritto."
msgid "Your identifier must contain at least 3 characters"
msgstr ""
"L'identificativo deve essere composto da almeno 3 caratteri alfanumerici\n"
"(<tt>[a-zA-Z0-9_]</tt>)\n"
"(<tt>[-a-zA-Z0-9_]</tt>)\n"

msgid "You must enter your first name"
msgstr "Il nome è obbligatorio"
Expand Down
2 changes: 1 addition & 1 deletion po/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ msgid "The address is already registered."
msgstr "アドレス %1 はすでに登録されています。"

msgid "Your identifier must contain at least 3 characters"
msgstr "ID は3文字以上の半角英数字でお願いします。 (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "ID は3文字以上の半角英数字でお願いします。 (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "ファーストネーム(名)を入力してください"
Expand Down
2 changes: 1 addition & 1 deletion po/nb.po
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ msgid "The address is already registered."
msgstr "Adressen %1 er allerede registrert."

msgid "Your identifier must contain at least 3 characters"
msgstr "Brukernavnet ditt må inneholde minst tre tegn og bestå av alfanumeriske tegn (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Brukernavnet ditt må inneholde minst tre tegn og bestå av alfanumeriske tegn (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Du må oppgi ditt fornavn"
Expand Down
2 changes: 1 addition & 1 deletion po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ msgid "The address is already registered."
msgstr "Het adres %1 is al geregistreerd."

msgid "Your identifier must contain at least 3 characters"
msgstr "Uw naam dient minimaal uit 3 tekens te bestaan en uitsluitend alfanumerieke tekens (<tt>[a-zA-Z0-9_]</tt>) zijn toegestaan"
msgstr "Uw naam dient minimaal uit 3 tekens te bestaan en uitsluitend alfanumerieke tekens (<tt>[-a-zA-Z0-9_]</tt>) zijn toegestaan"

msgid "You must enter your first name"
msgstr "Gelieve uw voornaam in te geven"
Expand Down
2 changes: 1 addition & 1 deletion po/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ msgid "The address is already registered."
msgstr "O endereço %1 já está registado."

msgid "Your identifier must contain at least 3 characters"
msgstr "O seu identificador deve conter pelo menos 3 caracteres, e apenas caracteres alfanuméricos (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "O seu identificador deve conter pelo menos 3 caracteres, e apenas caracteres alfanuméricos (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "O seu nome é obrigatório"
Expand Down
2 changes: 1 addition & 1 deletion po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ msgid "The address is already registered."
msgstr "Адрес %1 уже зарегистрирован."

msgid "Your identifier must contain at least 3 characters"
msgstr "Ваш идентификатор должен состоять как минимум из трех символов и содержать только латинские буквы и цифры (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Ваш идентификатор должен состоять как минимум из трех символов и содержать только латинские буквы и цифры (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Необходимо ввести имя"
Expand Down
2 changes: 1 addition & 1 deletion po/sk.po
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ msgid "The address is already registered."
msgstr "Táto adresa %1 je už zaregistrovaná."

msgid "Your identifier must contain at least 3 characters"
msgstr "Tvoja identifikácia musí obsahovať aspoň 3 a iba alfanumerické znaky (<tt>[a-zA-Z0-9_]{3,}</tt>)"
msgstr "Tvoja identifikácia musí obsahovať aspoň 3 a iba alfanumerické znaky (<tt>[-a-zA-Z0-9_]{3,}</tt>)"

msgid "You must enter your first name"
msgstr "Musíš zadať svoje meno"
Expand Down
2 changes: 1 addition & 1 deletion po/uk.po
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ msgid "The address is already registered."
msgstr "Адреса %1 вже зареєстрована."

msgid "Your identifier must contain at least 3 characters"
msgstr "Ваш ідентифікатор повинен складатися як мінімум з трьох символів і містити тільки латинські літери та цифри (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "Ваш ідентифікатор повинен складатися як мінімум з трьох символів і містити тільки латинські літери та цифри (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "Необхідно ввести ім'я"
Expand Down
2 changes: 1 addition & 1 deletion po/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ msgid "The address is already registered."
msgstr "该地址 %1 已注册。"

msgid "Your identifier must contain at least 3 characters"
msgstr "ID 必须是3个以上半角英文字符。 (<tt>[a-zA-Z0-9_]</tt>)"
msgstr "ID 必须是3个以上半角英文字符。 (<tt>[-a-zA-Z0-9_]</tt>)"

msgid "You must enter your first name"
msgstr "您必须输入您的名"
Expand Down