From 937bcd6582cec9889a1a57a79b25fa5c34ffb185 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sat, 16 Feb 2019 09:46:04 +0000
Subject: [PATCH] Set autocomplete=off on input fields

---
 server/templates/login_otp.html      | 2 +-
 server/templates/login_password.html | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/templates/login_otp.html b/server/templates/login_otp.html
index 3830e5e..3a477b3 100644
--- a/server/templates/login_otp.html
+++ b/server/templates/login_otp.html
@@ -12,7 +12,7 @@
       {{end}}
 
       <label for="inputOTP" class="sr-only">OTP</label>
-      <input type="text" id="inputOTP" name="otp" size="6" class="form-control" required autofocus>
+      <input type="text" id="inputOTP" name="otp" size="6" class="form-control" required autofocus autocomplete="off">
 
       <button type="submit" class="btn btn-primary">Login</button>
 
diff --git a/server/templates/login_password.html b/server/templates/login_password.html
index 5b44782..f09b92d 100644
--- a/server/templates/login_password.html
+++ b/server/templates/login_password.html
@@ -20,13 +20,13 @@
              value="{{.Username}}"
              {{else}}
              placeholder="Username"
-             {{end}} required autofocus>
+             {{end}} autocomplete="off" required autofocus>
 
       <label for="inputPassword" class="sr-only">
         Password
       </label>
       <input type="password" name="password" id="inputPassword"
-             class="form-control" placeholder="Password" required>
+             class="form-control" placeholder="Password" autocomplete="off" required>
 
       {{if .AccountRecoveryURL}}
       <p>
-- 
GitLab