Skip to content

Commit

Permalink
feat: Indicate via @autocomplete whether a password field is for new …
Browse files Browse the repository at this point in the history
…or current values (#275)
  • Loading branch information
mnoorenberghe authored Jun 30, 2020
1 parent 3a21783 commit 34ac020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pages = {
button: "log_in",
button_saving: "logging_in",
email: true,
password: true,
password: "current-password",
link: "amnesia",
link_text: "forgot_password",
providers: true
Expand All @@ -25,7 +25,7 @@ const pages = {
button_saving: "signing_up",
name: true,
email: true,
password: true,
password: "new-password",
providers: true
},
amnesia: {
Expand All @@ -40,15 +40,15 @@ const pages = {
title: "recover_password",
button: "update_password",
button_saving: "updating_password",
password: true,
password: "new-password",
link: "login",
link_text: "never_mind"
},
invite: {
title: "complete_your_signup",
button: "sign_up",
button_saving: "signing_up",
password: true,
password: "new-password",
providers: true
},
user: {
Expand Down
1 change: 1 addition & 0 deletions src/components/forms/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class UserForm extends Component {
name="password"
value={password}
placeholder={t("form_password_placeholder")}
autocomplete={page.password}
required
oninput={this.handleInput}
/>
Expand Down

0 comments on commit 34ac020

Please sign in to comment.