From: Sunil Joshi Date: Fri, 2 May 2014 12:26:19 +0000 (+0100) Subject: Bug 927452 - When creating a new user account, the requirements for the password... X-Git-Tag: bugzilla-4.5.5~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26913cee0717b63ddc350241370b0f49c82a36c9;p=thirdparty%2Fbugzilla.git Bug 927452 - When creating a new user account, the requirements for the password should be displayed. r=gerv, a=justdave. --- diff --git a/template/en/default/account/email/confirm-new.html.tmpl b/template/en/default/account/email/confirm-new.html.tmpl index 0950976988..3b98660040 100644 --- a/template/en/default/account/email/confirm-new.html.tmpl +++ b/template/en/default/account/email/confirm-new.html.tmpl @@ -17,6 +17,8 @@ title = title %] +[% password_complexity = Param('password_complexity') %] +

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 @@ -39,7 +41,15 @@ : - (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 ~%] + .)