Browse Source

AutoFill OTP (#3381)

https://developer.apple.com/documentation/security/enabling-password-autofill-on-an-html-input-element
Igor Finagin 1 week ago
parent
commit
d10c312e62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/html/login.html

+ 2 - 2
web/html/login.html

@@ -512,7 +512,7 @@
                     </a-input-password>
                   </a-form-item>
                   <a-form-item v-if="twoFactorEnable">
-                    <a-input autocomplete="totp" name="twoFactorCode" v-model.trim="user.twoFactorCode"
+                    <a-input autocomplete="one-time-code" name="twoFactorCode" v-model.trim="user.twoFactorCode"
                       placeholder='{{ i18n "twoFactorCode" }}' @keydown.enter.native="login">
                       <a-icon slot="prefix" type="key" :style="{ fontSize: '1rem' }"></a-icon>
                     </a-input>
@@ -615,4 +615,4 @@
     }
   });
 </script>
-{{ template "page/body_end" .}}
+{{ template "page/body_end" .}}