Skip to content

Commit

Permalink
fix(auth): add type, placeholder and autocomplete to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ofr1tz committed Apr 30, 2024
1 parent 16afe6d commit 435fab7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/RecoverAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export default defineComponent({
v-model="email"
:label="$t('authView.email') + '*'"
ref="email"
type="email"
placeholder="email"
autocomplete="email"
:rules="[rules.required, rules.email]"
/>
</v-col>
Expand Down
5 changes: 5 additions & 0 deletions src/components/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,17 @@ export default defineComponent({
:label="$t('authView.email') + '*'"
ref="email"
:rules="[rules.required, rules.email]"
type="email"
placeholder="email"
autocomplete="email"
/>
<v-text-field
v-model="password"
:label="$t('authView.password') + '*'"
:append-inner-icon="showPassword ? 'mdi-eye' : 'mdi-eye-off'"
:type="showPassword ? 'text' : 'password'"
placeholder="password"
autocomplete="password"
ref="password"
:rules="[rules.required]"
@click:append-inner="showPassword = !showPassword"
Expand Down
10 changes: 10 additions & 0 deletions src/components/SignUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,18 @@ export default defineComponent({
:label="$t('authView.email') + '*'"
ref="email"
:rules="[rules.required, rules.email]"
type="email"
placeholder="email"
autocomplete="email"
/>
<v-text-field
v-model="displayName"
:label="$t('authView.displayName') + '*'"
ref="displayName"
:rules="[rules.required, rules.min4]"
type="name"
placeholder="name"
autocomplete="name"
/>
<v-text-field
v-model="password"
Expand All @@ -142,6 +148,8 @@ export default defineComponent({
:type="showPassword ? 'text' : 'password'"
:rules="[rules.required, rules.min6]"
ref="password"
placeholder="password"
autocomplete="password"
@click:append-inner="showPassword = !showPassword"
/>
<v-text-field
Expand All @@ -151,6 +159,8 @@ export default defineComponent({
:type="showPassword ? 'text' : 'password'"
:rules="[rules.required, rules.min6, rules.passwordMatch]"
ref="confirmPassword"
placeholder="password"
autocomplete="password"
@click:append-inner="showPassword = !showPassword"
/>
<v-switch v-model="consent" color="primary" inset>
Expand Down

0 comments on commit 435fab7

Please sign in to comment.