]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1370904 - Add "required" property to login input elements
authorWilliam Lachance <wrlach@gmail.com>
Wed, 7 Jun 2017 17:28:04 +0000 (13:28 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 7 Jun 2017 17:28:04 +0000 (13:28 -0400)
template/en/default/account/auth/login-small.html.tmpl
template/en/default/account/auth/login.html.tmpl

index 7ca0a44d980462efb2cbea58144ca4522c276dd3..1f38f18b765983ef767d39795db01c1ad3b851b8 100644 (file)
            name="Bugzilla_login"
            title="Login"
            placeholder="email address"
+           type="email"
+           required
     >
     <input class="bz_password"
            id="Bugzilla_password[% qs_suffix FILTER html %]" 
            name="Bugzilla_password"
            type="password"
            title="Password"
+           required
     >
     <input class="bz_password bz_default_hidden bz_mini_login_help" type="text" 
            id="Bugzilla_password_dummy[% qs_suffix %]" value="password"
index 33aeaeaeaa80a4e8d0ae8de9c0a1007dc6f97df5..160fad43b7719824f66495fce1f18f7d845c800e 100644 (file)
     <div class="field-login">
       <label for="Bugzilla_login">Email Address:</label>
       <input id="Bugzilla_login" name="Bugzilla_login"
-             [%- ' type="email"' UNLESS Param('emailsuffix') %]>
+             [%- ' type="email"' UNLESS Param('emailsuffix') %]
+             required>
       [% Param('emailsuffix') FILTER html %]
     </div>
 
     <div class="field-password">
       <label for="Bugzilla_password">Password:</label>
-      <input type="password" id="Bugzilla_password" name="Bugzilla_password">
+      <input type="password" id="Bugzilla_password" name="Bugzilla_password" required>
     </div>
 
     [% IF Param('rememberlogin') == 'defaulton' ||