From 1214da01f6c5619dcbfb3c726fb5abcc726107d1 Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Wed, 22 May 2024 15:21:00 -0700 Subject: [PATCH] play nice with password managers see details at https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete --- client/src/components/Login/ChangePassword.vue | 6 +++--- client/src/components/Login/LoginForm.vue | 3 ++- client/src/components/Login/RegisterForm.vue | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/client/src/components/Login/ChangePassword.vue b/client/src/components/Login/ChangePassword.vue index 0c761c98ecd3..8aa4f78650c7 100644 --- a/client/src/components/Login/ChangePassword.vue +++ b/client/src/components/Login/ChangePassword.vue @@ -50,15 +50,15 @@ async function submit() { - + - + - + Save new password diff --git a/client/src/components/Login/LoginForm.vue b/client/src/components/Login/LoginForm.vue index eb770103086a..4ad09ebb0d57 100644 --- a/client/src/components/Login/LoginForm.vue +++ b/client/src/components/Login/LoginForm.vue @@ -195,7 +195,8 @@ function returnToLogin() { required :state="passwordState" name="password" - type="password" /> + type="password" + autocomplete="current-password" /> Forgot password? diff --git a/client/src/components/Login/RegisterForm.vue b/client/src/components/Login/RegisterForm.vue index 25546ed46804..46273e83d77b 100644 --- a/client/src/components/Login/RegisterForm.vue +++ b/client/src/components/Login/RegisterForm.vue @@ -144,6 +144,7 @@ async function submit() { v-model="password" name="password" type="password" + autocomplete="new-password" required /> @@ -153,6 +154,7 @@ async function submit() { v-model="confirm" name="confirm" type="password" + autocomplete="new-password" required />