Skip to content

Commit

Permalink
Add autocomplete attributes to auth-related inputs (modrinth#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
MMK21Hub authored Sep 2, 2023
1 parent d500c29 commit 3033387
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pages/auth/reset-password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
id="email"
v-model="email"
type="text"
autocomplete="username"
class="auth-form__input"
placeholder="Email"
/>
Expand All @@ -35,6 +36,7 @@
id="password"
v-model="newPassword"
type="password"
autocomplete="new-password"
class="auth-form__input"
placeholder="Password"
/>
Expand All @@ -47,6 +49,7 @@
id="confirm-password"
v-model="confirmNewPassword"
type="password"
autocomplete="new-password"
class="auth-form__input"
placeholder="Confirm password"
/>
Expand Down
2 changes: 2 additions & 0 deletions pages/auth/sign-in.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
id="email"
v-model="email"
type="text"
autocomplete="username"
class="auth-form__input"
placeholder="Email or username"
/>
Expand All @@ -70,6 +71,7 @@
id="password"
v-model="password"
type="password"
autocomplete="current-password"
class="auth-form__input"
placeholder="Password"
/>
Expand Down
6 changes: 5 additions & 1 deletion pages/auth/sign-up.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
<input
id="email"
v-model="email"
type="text"
type="email"
autocomplete="username"
class="auth-form__input"
placeholder="Email"
/>
Expand All @@ -51,6 +52,7 @@
id="username"
v-model="username"
type="text"
autocomplete="username"
class="auth-form__input"
placeholder="Username"
/>
Expand All @@ -64,6 +66,7 @@
v-model="password"
class="auth-form__input"
type="password"
autocomplete="new-password"
placeholder="Password"
/>
</div>
Expand All @@ -75,6 +78,7 @@
id="confirm-password"
v-model="confirmPassword"
type="password"
autocomplete="new-password"
class="auth-form__input"
placeholder="Confirm password"
/>
Expand Down
3 changes: 3 additions & 0 deletions pages/settings/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
v-model="oldPassword"
maxlength="2048"
type="password"
autocomplete="current-password"
:placeholder="`${removePasswordMode ? 'Confirm' : 'Old'} password`"
/>
<template v-if="!removePasswordMode">
Expand All @@ -69,6 +70,7 @@
v-model="newPassword"
maxlength="2048"
type="password"
autocomplete="new-password"
placeholder="New password"
/>
<label for="confirm-new-password"
Expand All @@ -79,6 +81,7 @@
v-model="confirmNewPassword"
maxlength="2048"
type="password"
autocomplete="new-password"
placeholder="Confirm new password"
/>
</template>
Expand Down

0 comments on commit 3033387

Please sign in to comment.