Skip to content

Commit

Permalink
fix: add autocomplete=username to email fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiroaisen committed Jun 13, 2023
1 parent befc4e3 commit f1cb7a4
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions front/admin/src/routes/(online)/(app)/me/me.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
<Email
label={$locale.pages.me.fields.email}
disabled
autocomplete="username"
value={data.admin.email}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion front/admin/src/routes/(online)/(login)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<Formy action={login} let:submit>
<form novalidate class="login-page-fields" on:submit={submit}>
<div class="login-page-field">
<Email label="Email" bind:value={email} />
<Email label="Email" autocomplete="username" bind:value={email} />
<Validator value={email} fn={_string({ required: true })} />
</div>
<div class="login-page-field password-box">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<Formy action={send} let:submit>
<form novalidate class="login-page-fields" on:submit={submit}>
<div class="login-page-field field-box">
<Email label="Email" bind:value={email} />
<Email label="Email" autocomplete="username" bind:value={email} />
<Validator value={email} fn={_email({ required: true })} />
<span class="comment login-page-comment">We'll send you an e-mail for you to recover access</span>
<a class="na back" href="/login">Back to login</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@
>
<Formy action={invite} let:submit>
<form novalidate class="invite-dialog" on:submit={submit}>
<Email label={$locale.pages["account/members"].dialogs.invite.Email} bind:value={invite_email} />
<Email label={$locale.pages["account/members"].dialogs.invite.Email} autocomplete="username" bind:value={invite_email} />
<div class="invite-dialog-validate">
<Validator value={invite_email} fn={email_validate} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@

<div class="login-page-fields">
<div class="login-page-field">
<Email label={$locale.pages.email_invitation.form.fields.email} disabled value={email()} />
<Email autocomplete="username" label={$locale.pages.email_invitation.form.fields.email} disabled value={email()} />
</div>

<div class="login-page-field">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<Formy action={login} let:submit>
<form novalidate class="login-page-fields" on:submit={submit}>
<div class="login-page-field">
<Email label={$locale.pages.login.fields.email} bind:value={email} />
<Email autocomplete="username" label={$locale.pages.login.fields.email} bind:value={email} />
<Validator value={email} fn={_string({ required: true })} />
</div>
<div class="login-page-field password-box">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<Formy action={send} let:submit>
<form novalidate class="login-page-fields" on:submit={submit}>
<div class="login-page-field field-box">
<Email label="Email" bind:value={email} />
<Email autocomplete="username" label="Email" bind:value={email} />
<Validator value={email} fn={_email({ required: true })} />
<span class="comment login-page-comment">
{$locale.pages.recover.comment}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
<Validator value={phone} fn={_phone({ required: true })} />
</div> -->
<div class="login-page-field">
<Email label={$locale.pages.register.form.fields.email} bind:value={email} />
<Email label={$locale.pages.register.form.fields.email} autocomplete="username" bind:value={email} />
<Validator value={email} fn={_new_user_email()} />
</div>
<div class="login-page-field">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<div class="field">
<Email
label={$locale.pages.user_recovery.fields.email}
autocomplete="username"
readonly
value={data.result.user_email}
/>
Expand Down

0 comments on commit f1cb7a4

Please sign in to comment.