Browse Source

fix: autocomplete

pull/6249/head
DarkPhoenix2704 1 year ago
parent
commit
8e310eeac3
  1. 8
      packages/nc-gui/pages/signin.vue
  2. 13
      packages/nc-gui/pages/signup/[[token]].vue

8
packages/nc-gui/pages/signin.vue

@ -101,9 +101,11 @@ function resetError() {
</div>
</Transition>
<a-form-item :label="$t('labels.email')" name="email" :rules="formRules.email">
<a-form-item :label="$t('labels.email')" name="email" :rules="formRules.email" aria-autocomplete="email">
<a-input
v-model:value="form.email"
type="email"
autocomplete="email"
data-testid="nc-form-signin__email"
size="large"
:placeholder="$t('msg.info.signUp.workEmail')"
@ -111,9 +113,11 @@ function resetError() {
/>
</a-form-item>
<a-form-item :label="$t('labels.password')" name="password" :rules="formRules.password">
<a-form-item :label="$t('labels.password')" name="password" :rules="formRules.password" aria-autocomplete="password">
<a-input-password
v-model:value="form.password"
type="password"
autocomplete="password"
data-testid="nc-form-signin__password"
size="large"
class="password"

13
packages/nc-gui/pages/signup/[[token]].vue

@ -146,18 +146,27 @@ function resetError() {
</div>
</Transition>
<a-form-item :label="$t('labels.email')" name="email" :rules="formRules.email">
<a-form-item :label="$t('labels.email')" name="email" :rules="formRules.email" aria-autocomplete="email">
<a-input
v-model:value="form.email"
autocomplete="email"
type="email"
size="large"
:placeholder="$t('msg.info.signUp.workEmail')"
@focus="resetError"
/>
</a-form-item>
<a-form-item :label="$t('labels.password')" name="password" :rules="formRules.password">
<a-form-item
:label="$t('labels.password')"
name="password"
:rules="formRules.password"
aria-autocomplete="new-password"
>
<a-input-password
v-model:value="form.password"
type="password"
autocomplete="new-password"
size="large"
class="password"
:placeholder="$t('msg.info.signUp.enterPassword')"

Loading…
Cancel
Save