Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(a11y): set autocomplete for protected session
Elian Doran0c5cd66eaeb3
diff --git a/src/public/app/widgets/dialogs/protected_session_password.ts b/src/public/app/widgets/dialogs/protected_session_password.tsindex b044a9b7f5..d839aac3b8 100644--- a/src/public/app/widgets/dialogs/protected_session_password.ts+++ b/src/public/app/widgets/dialogs/protected_session_password.ts@@ -16,7 +16,7 @@ const TPL = /*html*/`<form class="protected-session-password-form"><div class="modal-body"><label for="protected-session-password" class="col-form-label">${t("protected_session_password.form_label")}</label>- <input id="protected-session-password" class="form-control protected-session-password" type="password">+ <input id="protected-session-password" class="form-control protected-session-password" type="password" autocomplete="current-password"></div><div class="modal-footer"><button class="btn btn-primary">${t("protected_session_password.start_button")}</button>diff --git a/src/public/app/widgets/type_widgets/protected_session.ts b/src/public/app/widgets/type_widgets/protected_session.tsindex 241acff3e0..e02e14250f 100644--- a/src/public/app/widgets/type_widgets/protected_session.ts+++ b/src/public/app/widgets/type_widgets/protected_session.ts@@ -20,7 +20,7 @@ const TPL = /*html*/`<form class="protected-session-password-form"><div class="form-group"><label for="protected-session-password-in-detail">${t("protected_session.enter_password_instruction")}</label>- <input id="protected-session-password-in-detail" class="form-control protected-session-password" type="password" autofocus>+ <input id="protected-session-password-in-detail" class="form-control protected-session-password" type="password" autofocus autocomplete="current-password"></div><button class="btn btn-primary">${t("protected_session.start_session_button")}</button>