From 07de9f273e08f646ab8b14470fe11f0175aff494 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Tue, 24 Dec 2019 12:02:52 +0100
Subject: [PATCH] [fix] Login & transfer form: set autocomplete=off in HTML
 inputs

---
 www/templates/login/form_pubkey.html          | 1 +
 www/templates/login/form_scrypt_advanced.html | 3 +++
 www/templates/wallet/transfer_form.html       | 4 ++++
 3 files changed, 8 insertions(+)

diff --git a/www/templates/login/form_pubkey.html b/www/templates/login/form_pubkey.html
index 876d27ff9..68f4a8b17 100644
--- a/www/templates/login/form_pubkey.html
+++ b/www/templates/login/form_pubkey.html
@@ -7,6 +7,7 @@
        ng-class="{ 'item-input-error': form.$submitted && form.pubkey.$invalid}">
   <span class="input-label hidden-xs" translate>COMMON.PUBKEY</span>
   <input name="pubkey" type="text" placeholder="{{'LOGIN.PUBKEY_HELP' | translate}}"
+         autocomplete="off"
          ng-model="formData.pubkey"
          ng-model-options="{ debounce: 650 }"
          required >
diff --git a/www/templates/login/form_scrypt_advanced.html b/www/templates/login/form_scrypt_advanced.html
index d516ad764..304993129 100644
--- a/www/templates/login/form_scrypt_advanced.html
+++ b/www/templates/login/form_scrypt_advanced.html
@@ -13,6 +13,7 @@
     <label class="item item-input">
       <span class="input-label" translate>LOGIN.SCRYPT.N</span>
       <input class="no-padding-right" type="number" placeholder="N"
+             autocomplete="off"
              ng-model="formData.scrypt.params.N"
              ng-model-options="{ debounce: 650 }"
              ng-change="onScryptFormChanged()"
@@ -24,6 +25,7 @@
       <span class="input-label" translate>LOGIN.SCRYPT.r</span>
       <input class="no-padding-right" type="number" placeholder="r"
              ng-model="formData.scrypt.params.r"
+             autocomplete="off"
              ng-model-options="{ debounce: 650 }"
              ng-change="onScryptFormChanged()"
              required>
@@ -33,6 +35,7 @@
     <label class="item item-input">
       <span class="input-label" translate>LOGIN.SCRYPT.p</span>
       <input class="no-padding-right" type="number" placeholder="p"
+             autocomplete="off"
              ng-model="formData.scrypt.params.p"
              ng-model-options="{ debounce: 650 }"
              ng-change="onScryptFormChanged()"
diff --git a/www/templates/wallet/transfer_form.html b/www/templates/wallet/transfer_form.html
index 45881d1ce..f53f2a2e4 100644
--- a/www/templates/wallet/transfer_form.html
+++ b/www/templates/wallet/transfer_form.html
@@ -55,6 +55,7 @@
       </div>
       <input type="text"
              tabindex="3"
+             autocomplete="off"
              class="hidden-xs hidden-sm"
              name="amount"
              placeholder="{{::'TRANSFER.AMOUNT_HELP' | translate}} ({{$root.currency.name | currencySymbolNoHtml:formData.useRelative}})"
@@ -65,6 +66,7 @@
       <!-- mobile: come OVER the input -->
       <input type="text"
              tabindex="-1"
+             autocomplete="off"
              class="visible-xs visible-sm"
              name="amount"
              placeholder="{{::'TRANSFER.AMOUNT_HELP' | translate}} ({{$root.currency.name | currencySymbolNoHtml:formData.useRelative}})"
@@ -151,6 +153,7 @@
       <input type="text" placeholder="{{'TRANSFER.COMMENT_HELP' | translate}}"
              name="comment"
              tabindex="6"
+             autocomplete="off"
              ng-model="formData.comment"
              ng-maxlength="255"
              ng-pattern="commentPattern">
@@ -163,6 +166,7 @@
              id="{{commentInputId}}"
              tabindex="7"
              name="comment"
+             autocomplete="off"
              ng-model="formData.comment"
              ng-model-options="{ debounce: 650 }"
              ng-maxlength="255"
-- 
GitLab