~jan0sch/smederee

Showing details for patch 643d7712fce746c6a0b989ee0f5178daa0fc9b9a.
2022-07-12 (Tue), 12:59 PM - Jens Grassel - 643d7712fce746c6a0b989ee0f5178daa0fc9b9a

Signup: autocomplete settings for form

Summary of changes
1 files modified with 3 lines added and 3 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 3 added and 3 removed lines
diff -rN -u old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html
--- old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html	2025-02-03 04:49:45.061667334 +0000
+++ new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html	2025-02-03 04:49:45.061667334 +0000
@@ -15,7 +15,7 @@
       }
     </div>
     <div class="signup-form">
-      <form action="@createFullPath(pathPrefix)(action)" method="POST" accept-charset="UTF-8" class="pure-form pure-form-aligned">
+      <form action="@createFullPath(pathPrefix)(action)" method="POST" accept-charset="UTF-8" class="pure-form pure-form-aligned" autocomplete="on">
         <fieldset id="signup-data">
           <div class="pure-control-group">
             <label for="@{fieldName}">Username</label>
@@ -25,13 +25,13 @@
           </div>
           <div class="pure-control-group">
             <label for="@{fieldEmail}">Email address</label>
-            <input class="pure-input-1-2" id="@{fieldEmail}" name="@{fieldEmail}" placeholder="some@@somewhere.org" maxlength="128" required="" type="email" value="@{formData.get(fieldEmail)}">
+            <input class="pure-input-1-2" id="@{fieldEmail}" name="@{fieldEmail}" placeholder="some@@somewhere.org" maxlength="128" required="" type="email" value="@{formData.get(fieldEmail)}" autocomplete="email">
             <small class="pure-form-message" id="@{fieldEmail}.help">Please enter your email address.</small>
             @renderFormErrors(fieldEmail, formErrors)
           </div>
           <div class="pure-control-group">
             <label for="@{fieldPassword}">Password</label>
-            <input class="pure-input-1-2" id="@{fieldPassword}" name="@{fieldPassword}" placeholder="Please choose a secure password!" maxlength="128" required="" type="password" value="">
+            <input class="pure-input-1-2" id="@{fieldPassword}" name="@{fieldPassword}" placeholder="Please choose a secure password!" maxlength="128" required="" type="password" value="" autocomplete="new-password">
             <small class="pure-form-message" id="@{fieldPassword}.help">Your password must be at least 12 characters long.</small>
             @renderFormErrors(fieldPassword, formErrors)
           </div>