From dc36b1684c4da47defe8d3941ef60efb7cd8087e Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Tue, 25 Nov 2025 08:59:00 +0100 Subject: login: add autocomplete tags --- static/pages/login/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/pages') diff --git a/static/pages/login/index.js b/static/pages/login/index.js index 984d001..2cdd4c6 100644 --- a/static/pages/login/index.js +++ b/static/pages/login/index.js @@ -32,6 +32,7 @@ export default class LoginView extends sfw.element.Container { children: [ this.#input = Input.new({ placeholder: 'Username', + autocomplete: 'username', onkeydown: (e) => { if (e.key === 'Enter') { return this.#next(); @@ -65,12 +66,14 @@ export default class LoginView extends sfw.element.Container { this.#user.innerText = ''; this.#input.value = ''; this.#input.placeholder = 'Username'; + this.#input.autocomplete = 'username'; this.#input.type = 'text'; } else { await this.onpassword(this.#input.value); this.#user.innerText = this.#input.value; this.#input.value = ''; this.#input.placeholder = 'Password'; + this.#input.autocomplete = 'current-password'; this.#input.type = 'password'; } } -- cgit v1.2.3-70-g09d2