Add `required` attributes to acptemplates/login
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 Aug 2021 10:31:32 +0000 (12:31 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 Aug 2021 10:32:51 +0000 (12:32 +0200)
wcfsetup/install/files/acp/templates/login.tpl

index 018c2107e2a7bb88281437649d9d81aeae8f5f23..a154e22d5a2b5d8271c786abaff04bcfbeb51874 100644 (file)
@@ -10,7 +10,7 @@
                
                <dl{if $errorField == 'username'} class="formError"{/if}>
                        <dt><label for="username">{lang}wcf.user.username{/lang}</label></dt>
-                       <dd><input type="text" id="username" name="username" value="{$username}" class="long" autocomplete="username">
+                       <dd><input type="text" id="username" name="username" value="{$username}" required class="long" autocomplete="username">
                                {if $errorField == 'username'}
                                        <small class="innerError">
                                                {if $errorType == 'empty'}
@@ -25,7 +25,7 @@
                
                <dl{if $errorField == 'password'} class="formError"{/if}>
                        <dt><label for="password">{lang}wcf.user.password{/lang}</label></dt>
-                       <dd><input type="password" id="password" name="password" value="" class="long" autocomplete="current-password">
+                       <dd><input type="password" id="password" name="password" value="" required class="long" autocomplete="current-password">
                                {if $errorField == 'password'}
                                        <small class="innerError">
                                                {if $errorType == 'empty'}