[CORL-445] Change Password (#2426)

* fix: reversed `new-password` autocomplete option

* feat: initial implementation

* fix: localization and testing

* fix: updated snapshot
This commit is contained in:
Wyatt Johnson
2019-08-01 22:08:14 +00:00
committed by GitHub
parent 290ceee8e9
commit 836a2267bf
48 changed files with 1122 additions and 197 deletions
@@ -32,7 +32,6 @@ const ClientSecretField: FunctionComponent<Props> = ({
<>
<PasswordField
disabled={disabled || meta.submitting}
autoComplete="new-password"
// TODO: (wyattjoh) figure out how to add translations to these props
hidePasswordTitle="Show Client Secret"
showPasswordTitle="Hide Client Secret"
@@ -145,7 +145,6 @@ const SMTP: FunctionComponent<Props> = ({ disabled }) => (
<>
<PasswordField
id={input.name}
autoComplete="new-password"
disabled={disabled || !enabled}
fullWidth
color={colorFromMeta(meta)}
@@ -32,7 +32,6 @@ const APIKeyField: FunctionComponent<Props> = ({
<PasswordField
id={`configure-moderation-${input.name}`}
disabled={disabled}
autoComplete="new-password"
// TODO: (wyattjoh) figure out how to add translations to these props
hidePasswordTitle="Show API Key"
showPasswordTitle="Hide API Key"
@@ -193,7 +193,7 @@ needs to be displayed, e.g. “Log in with &lt;Facebook&gt;”.
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={true}
@@ -638,7 +638,7 @@ For more information visit:
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={false}
@@ -978,7 +978,7 @@ needs to be displayed, e.g. “Log in with &lt;Facebook&gt;”.
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={false}
@@ -1480,7 +1480,7 @@ needs to be displayed, e.g. “Log in with &lt;Facebook&gt;”.
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={false}
@@ -2409,7 +2409,7 @@ needs to be displayed, e.g. “Log in with &lt;Facebook&gt;”.
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={true}
@@ -3098,7 +3098,7 @@ to create and set up a web application. For more information visit:
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={true}
@@ -3404,7 +3404,7 @@ For more information visit:
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={true}
@@ -521,7 +521,7 @@ improve the API over time.
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={false}
@@ -712,7 +712,7 @@ in your Akismet account:
>
<input
autoCapitalize="off"
autoComplete="new-password"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
disabled={false}