pwd-pattern
This commit is contained in:
parent
ecb743d9c0
commit
e09ce92323
|
@ -20,7 +20,7 @@
|
|||
<input id="username" name="username" value="{{ get('username', '') }}" type="text" required autofocus>
|
||||
|
||||
<label for="password">{{ str['pwd'] }}</label>
|
||||
<input id="password" name="password" type="password" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,24}$" required>
|
||||
<input id="password" name="password" type="password" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,24}$" oninvalid="setCustomValidity('{{ str['pwd-pattern'] }}')" oninput="setCustomValidity('')" required>
|
||||
|
||||
<button class="green" type="submit">{{str['login']}}</button>
|
||||
<a href="/signup">{{ str['or-sign-up'] }}</a>
|
||||
|
|
|
@ -45,7 +45,7 @@ class LocalizeTo(object):
|
|||
msg_05 = _("Not allowed characters for the surname field.")
|
||||
msg_06 = _("The code is invalid or has expired.")
|
||||
msg_07 = _("Passwords do not match!")
|
||||
msg_08 = _("The password must contain at least 8 characters, at least one number, uppercase and lowercase letters and special characters.")
|
||||
msg_08 = _("The password must contain at least 8 characters, at least one number, a capital letter and a special character.")
|
||||
msg_09 = _("Congratulations, your account has been created!")
|
||||
msg_10 = _("Your first and last name have not been changed.")
|
||||
msg_11 = _("Your firstname is a bit short, don't you think?")
|
||||
|
@ -66,5 +66,5 @@ class LocalizeTo(object):
|
|||
msg_26 = _("Forgot your password? Please try again.")
|
||||
msg_27 = _("The session has expired.")
|
||||
|
||||
self.str = {'usr':str_00, 'usrn':str_01, 'fn':str_02, 'sn':str_03, 'pwd':str_04, 'old-pwd':str_05, 'new-pwd':str_06, 'conf-pwd':str_07, 'email':str_08, 'edit':str_09, 'login':str_10, 'log-out':str_11, 'del':str_12, 'sign-up':str_13, 'back':str_14, 'update':str_15, 'or-sign-in':str_16, 'or-sign-up':str_17, 'inv-code':str_18, 'edit-fn':str_19, 'edit-email':str_20, 'ch-pwd':str_21, 'del-account':str_22, 'welcome':str_23}
|
||||
self.str = {'usr':str_00, 'usrn':str_01, 'fn':str_02, 'sn':str_03, 'pwd':str_04, 'old-pwd':str_05, 'new-pwd':str_06, 'conf-pwd':str_07, 'email':str_08, 'edit':str_09, 'login':str_10, 'log-out':str_11, 'del':str_12, 'sign-up':str_13, 'back':str_14, 'update':str_15, 'or-sign-in':str_16, 'or-sign-up':str_17, 'inv-code':str_18, 'edit-fn':str_19, 'edit-email':str_20, 'ch-pwd':str_21, 'del-account':str_22, 'welcome':str_23, 'pwd-pattern': msg_08}
|
||||
self.msg = (msg_00, msg_01, msg_02, msg_03, msg_04, msg_05, msg_06, msg_07, msg_08, msg_09, msg_10, msg_11, msg_12, msg_13, msg_14, msg_15, msg_16, msg_17, msg_18, msg_19, msg_20, msg_21, msg_22, msg_23, msg_24, msg_25, msg_26, msg_27)
|
||||
|
|
|
@ -144,7 +144,7 @@ msgstr ""
|
|||
#: libs/localization.py:46
|
||||
msgid ""
|
||||
"The password must contain at least 8 characters, at least one number, "
|
||||
"uppercase and lowercase letters and special characters."
|
||||
"a capital letter and a special character."
|
||||
msgstr ""
|
||||
|
||||
#: libs/localization.py:47
|
||||
|
|
|
@ -144,10 +144,10 @@ msgstr "Passwords do not match!"
|
|||
#: libs/localization.py:46
|
||||
msgid ""
|
||||
"The password must contain at least 8 characters, at least one number, "
|
||||
"uppercase and lowercase letters and special characters."
|
||||
"a capital letter and a special character."
|
||||
msgstr ""
|
||||
"The password must contain at least 8 characters, at least one number, "
|
||||
"uppercase and lowercase letters and special characters."
|
||||
"a capital letter and a special character."
|
||||
|
||||
#: libs/localization.py:47
|
||||
msgid "Congratulations, your account has been created!"
|
||||
|
|
|
@ -144,10 +144,10 @@ msgstr "Pasahitzak ez datoz bat!"
|
|||
#: libs/localization.py:46
|
||||
msgid ""
|
||||
"The password must contain at least 8 characters, at least one number, "
|
||||
"uppercase and lowercase letters and special characters."
|
||||
"a capital letter and a special character."
|
||||
msgstr ""
|
||||
"Pasahitzak gutxienez 8 karaktere izan behar ditu, zenbakiren bat gutxienez, "
|
||||
"hizki txiki zein larriak eta baita karaktere bereziak ere."
|
||||
"Pasahitzak gutxienez 8 karaktere izan behar ditu, zenbaki bat, hizki larri bat "
|
||||
"eta karaktere berezi bat."
|
||||
|
||||
#: libs/localization.py:47
|
||||
msgid "Congratulations, your account has been created!"
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
<input id="email" name="email" type="email" required>
|
||||
|
||||
<label for="password">{{ str['pwd'] }}</label>
|
||||
<input id="password" name="password" type="password" required>
|
||||
<input id="password" name="password" type="password" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,24}$" oninvalid="setCustomValidity('{{ str['pwd-pattern'] }}')" oninput="setCustomValidity('')" required>
|
||||
|
||||
<label for="confirm-password">{{ str['conf-pwd'] }}</label>
|
||||
<input id="confirm-password" name="confirm-password" type="password"
|
||||
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,24}$" oninvalid="SetCustomValidity('Password must contain at least 8 characters, one number, uppercase and lowercase letters and special characters.')" required>
|
||||
pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,24}$" oninvalid="setCustomValidity('{{ str['pwd-pattern'] }}')" oninput="setCustomValidity('')" required>
|
||||
|
||||
<button class="green" type="submit">{{ str['sign-up'] }}</button>
|
||||
<a href="/">{{ str['or-sign-in'] }}</a>
|
||||
|
|
Loading…
Reference in New Issue