summaryrefslogtreecommitdiffstats
path: root/template/en/default/account
diff options
context:
space:
mode:
authorSunil Joshi <joshi_sunil@in.com>2014-03-23 01:56:29 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-03-23 01:56:29 +0100
commit165689a71928008f2d12f9cd8228497594899c2f (patch)
treed3a3c23bc30959290b014a86c1c50c60c7a9073c /template/en/default/account
parentd9cd47075697a363b94c575526937ad40c617a0b (diff)
downloadbugzilla-165689a71928008f2d12f9cd8228497594899c2f.tar.gz
bugzilla-165689a71928008f2d12f9cd8228497594899c2f.tar.xz
Bug 962812: Use the "required" attribute where appropriate
r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/account')
-rw-r--r--template/en/default/account/auth/login.html.tmpl6
-rw-r--r--template/en/default/account/create.html.tmpl2
-rw-r--r--template/en/default/account/email/confirm-new.html.tmpl4
-rw-r--r--template/en/default/account/email/confirm.html.tmpl2
-rw-r--r--template/en/default/account/password/set-forgotten-password.html.tmpl6
5 files changed, 10 insertions, 10 deletions
diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl
index 27c0690af..bf20edb8b 100644
--- a/template/en/default/account/auth/login.html.tmpl
+++ b/template/en/default/account/auth/login.html.tmpl
@@ -39,14 +39,14 @@
</th>
<td>
<input size="35" id="Bugzilla_login" name="Bugzilla_login"
- [%- ' type="email"' UNLESS Param('emailsuffix') %] autofocus>
+ [%- ' type="email"' UNLESS Param('emailsuffix') %] autofocus required>
[% Param('emailsuffix') FILTER html %]
</td>
</tr>
<tr>
<th><label for="Bugzilla_password">Password:</label></th>
<td>
- <input type="password" size="35" id="Bugzilla_password" name="Bugzilla_password">
+ <input type="password" size="35" id="Bugzilla_password" name="Bugzilla_password" required>
</td>
</tr>
@@ -115,7 +115,7 @@
If you have an account, but have forgotten your password,
enter your login name below and submit a request
to change your password.<br>
- <input size="35" name="loginname">
+ <input size="35" name="loginname" required>
<input type="hidden" id="token" name="token" value="[% issue_hash_token(['reqpw']) FILTER html %]">
<input type="submit" id="request" value="Reset Password">
</form>
diff --git a/template/en/default/account/create.html.tmpl b/template/en/default/account/create.html.tmpl
index 1b5a4daa8..5711a726f 100644
--- a/template/en/default/account/create.html.tmpl
+++ b/template/en/default/account/create.html.tmpl
@@ -72,7 +72,7 @@
[% END %]
</span>
<input size="35" id="login" name="login" autofocus
- [%- ' type="email"' UNLESS Param('emailsuffix') %]>
+ [%- ' type="email"' UNLESS Param('emailsuffix') %] required>
[% Param('emailsuffix') FILTER html %]
<input type="hidden" id="token" name="token" value="[% issue_hash_token(['create_account']) FILTER html %]">
<input type="submit" id="send" value="Send">
diff --git a/template/en/default/account/email/confirm-new.html.tmpl b/template/en/default/account/email/confirm-new.html.tmpl
index ec8d5a474..095097698 100644
--- a/template/en/default/account/email/confirm-new.html.tmpl
+++ b/template/en/default/account/email/confirm-new.html.tmpl
@@ -38,13 +38,13 @@
<tr>
<th><label for="passwd1">Type your password</label>:</th>
<td>
- <input type="password" id="passwd1" name="passwd1" value="">
+ <input type="password" id="passwd1" name="passwd1" value="" required>
(minimum [% constants.USER_PASSWORD_MIN_LENGTH FILTER none %] characters)
</td>
</tr>
<tr>
<th><label for="passwd2">Confirm your password</label>:</th>
- <td><input type="password" id="passwd2" name="passwd2" value=""></td>
+ <td><input type="password" id="passwd2" name="passwd2" value="" required></td>
</tr>
<tr>
<th>&nbsp;</th>
diff --git a/template/en/default/account/email/confirm.html.tmpl b/template/en/default/account/email/confirm.html.tmpl
index 6fc171878..8edc7a9ba 100644
--- a/template/en/default/account/email/confirm.html.tmpl
+++ b/template/en/default/account/email/confirm.html.tmpl
@@ -23,7 +23,7 @@
<table>
<tr>
<th>Password:</th>
- <td><input type="password" name="password" size="36"></td>
+ <td><input type="password" name="password" size="36" required></td>
</tr>
<tr>
<th>&nbsp;</th>
diff --git a/template/en/default/account/password/set-forgotten-password.html.tmpl b/template/en/default/account/password/set-forgotten-password.html.tmpl
index b203e66e9..eca11174f 100644
--- a/template/en/default/account/password/set-forgotten-password.html.tmpl
+++ b/template/en/default/account/password/set-forgotten-password.html.tmpl
@@ -30,17 +30,17 @@
<tr>
<th>New password:</th>
<td>
- <input type="password" name="password">
+ <input type="password" name="password" required>
</td>
</tr>
<tr>
<th>Confirm new password:</th>
<td>
- <input type="password" name="matchpassword">
+ <input type="password" name="matchpassword" required>
</td>
</tr>
-
+
<tr>
<th>&nbsp;</th>
<td>