diff options
| author | Rizvan Nukhtarov <34610650+nukhtarov@users.noreply.github.com> | 2024-08-30 10:16:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-30 10:16:34 +0300 |
| commit | 5d7de0858c0e67aca85bde3bb1ec14ad625ef3d9 (patch) | |
| tree | 2eea9fc162cb384618bd991cbab343356bc1a216 /web/html/xui | |
| parent | c0b88fe7366fc19149c7cfc9fc80bdd32e6b32dc (diff) | |
better autocomplete for password and token inputs (#2505)
Diffstat (limited to 'web/html/xui')
| -rw-r--r-- | web/html/xui/component/password.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/xui/component/password.html b/web/html/xui/component/password.html index 13dbfb51..37e4c793 100644 --- a/web/html/xui/component/password.html +++ b/web/html/xui/component/password.html @@ -1,8 +1,10 @@ {{define "component/passwordInput"}} <template> <a-input :value="value" :type="showPassword ? 'text' : 'password'" - :placeholder="placeholder" - @input="$emit('input', $event.target.value)"> + :placeholder="placeholder" + :autocomplete="autocomplete" + :name="name" + @input="$emit('input', $event.target.value)"> <template v-if="icon" #prefix> <a-icon :type="icon" style="font-size: 16px;" /> </template> @@ -18,7 +20,7 @@ {{define "component/password"}} <script> Vue.component('password-input', { - props: ["title", "value", "placeholder", "icon"], + props: ["title", "value", "placeholder", "icon", "autocomplete", "name"], template: `{{template "component/passwordInput"}}`, data() { return { |
