]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 927452 - When creating a new user account, the requirements for the password...
authorSunil Joshi <joshi_sunil@in.com>
Fri, 2 May 2014 12:26:19 +0000 (13:26 +0100)
committerGervase Markham <gerv@gerv.net>
Fri, 2 May 2014 12:26:19 +0000 (13:26 +0100)
template/en/default/account/email/confirm-new.html.tmpl

index 09509769884090f9a2b14f4035eedb512824baab..3b98660040a49c29138ff4ae75a9d54a87a1fc9a 100644 (file)
@@ -17,6 +17,8 @@
            title = title
 %]
 
+[% password_complexity = Param('password_complexity') %]
+
 <p>
   To create your account, you must enter a password in the form below.
   Your email address and Real Name (if provided) will be shown with
       <th><label for="passwd1">Type your password</label>:</th>
       <td>
         <input type="password" id="passwd1" name="passwd1" value="" required>
-        (minimum [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters)
+        (Password should be a minimum of [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters long
+        [% IF password_complexity == "mixed_letters" %]
+          and must contain at least one UPPER and one lowercase letter
+        [% ELSIF password_complexity == "letters_numbers" %]
+          and must contain at least one UPPER and one lowercase letter and a number
+        [% ELSIF password_complexity == "letters_numbers_specialchars" %] 
+          and must contain at least one letter, a number and a special character
+        [% END ~%]
+        .)
       </td>
     </tr>
     <tr>