From b94c835af0a80a7573ca376dca1fa523caee7b06 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 2 Nov 2020 23:41:18 +0100 Subject: [PATCH] Add autocomplete attributes to login and register forms --- src/views/user/Login.vue | 2 ++ src/views/user/PasswordReset.vue | 2 ++ src/views/user/Register.vue | 3 +++ 3 files changed, 7 insertions(+) diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index f134e781..7b65fd7f 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -17,6 +17,7 @@ ref="username" required type="text" + autocomplete="username" v-focus /> @@ -32,6 +33,7 @@ ref="password" required type="password" + autocomplete="current-password" /> diff --git a/src/views/user/PasswordReset.vue b/src/views/user/PasswordReset.vue index 94116636..78a6ebe5 100644 --- a/src/views/user/PasswordReset.vue +++ b/src/views/user/PasswordReset.vue @@ -13,6 +13,7 @@ placeholder="e.g. ••••••••••••" required type="password" + autocomplete="new-password" v-focus v-model="credentials.password"/> @@ -27,6 +28,7 @@ placeholder="e.g. ••••••••••••" required type="password" + autocomplete="new-password" v-model="credentials.password2"/> diff --git a/src/views/user/Register.vue b/src/views/user/Register.vue index f5411d15..b455ef4f 100644 --- a/src/views/user/Register.vue +++ b/src/views/user/Register.vue @@ -13,6 +13,7 @@ placeholder="e.g. frederick" required type="text" + autocomplete="username" v-focus v-model="credentials.username"/> @@ -40,6 +41,7 @@ placeholder="e.g. ••••••••••••" required type="password" + autocomplete="new-password" v-model="credentials.password"/> @@ -53,6 +55,7 @@ placeholder="e.g. ••••••••••••" required type="password" + autocomplete="new-password" v-model="credentials.password2"/>