diff --git a/src/shared/components/common/password-input.tsx b/src/shared/components/common/password-input.tsx index 42980089..20cbadd4 100644 --- a/src/shared/components/common/password-input.tsx +++ b/src/shared/components/common/password-input.tsx @@ -14,6 +14,7 @@ interface PasswordInputProps { showStrength?: boolean; label?: string | null; showForgotLink?: boolean; + isNew?: boolean; } interface PasswordInputState { @@ -73,6 +74,7 @@ class PasswordInput extends Component { showStrength, label, showForgotLink, + isNew, }, state: { show }, } = this; @@ -91,7 +93,7 @@ class PasswordInput extends Component { type={show ? "text" : "password"} className="form-control" aria-describedby={id} - autoComplete="on" + autoComplete={isNew ? "new-password" : "current-password"} onInput={onInput} value={value} required diff --git a/src/shared/components/home/setup.tsx b/src/shared/components/home/setup.tsx index 7dd433ab..0a3d09fe 100644 --- a/src/shared/components/home/setup.tsx +++ b/src/shared/components/home/setup.tsx @@ -128,6 +128,7 @@ export class Setup extends Component { value={this.state.form.password} onInput={linkEvent(this, this.handleRegisterPasswordChange)} label={I18NextService.i18n.t("password")} + isNew />
@@ -136,6 +137,7 @@ export class Setup extends Component { value={this.state.form.password_verify} onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)} label={I18NextService.i18n.t("verify_password")} + isNew />
diff --git a/src/shared/components/home/signup.tsx b/src/shared/components/home/signup.tsx index fce37f97..58324bef 100644 --- a/src/shared/components/home/signup.tsx +++ b/src/shared/components/home/signup.tsx @@ -189,6 +189,7 @@ export class Signup extends Component { onInput={linkEvent(this, this.handleRegisterPasswordChange)} showStrength label={I18NextService.i18n.t("password")} + isNew />
@@ -198,6 +199,7 @@ export class Signup extends Component { value={this.state.form.password_verify} onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)} label={I18NextService.i18n.t("verify_password")} + isNew /> diff --git a/src/shared/components/person/password-change.tsx b/src/shared/components/person/password-change.tsx index bfbeb716..16f23d4b 100644 --- a/src/shared/components/person/password-change.tsx +++ b/src/shared/components/person/password-change.tsx @@ -68,6 +68,7 @@ export class PasswordChange extends Component { onInput={linkEvent(this, this.handlePasswordChange)} showStrength label={I18NextService.i18n.t("new_password")} + isNew />
diff --git a/src/shared/components/person/settings.tsx b/src/shared/components/person/settings.tsx index 4b21d406..d0450470 100644 --- a/src/shared/components/person/settings.tsx +++ b/src/shared/components/person/settings.tsx @@ -264,7 +264,7 @@ export class Settings extends Component { ); } - userSettings(isSelected) { + userSettings(isSelected: boolean) { return (
{ ); } - blockCards(isSelected) { + blockCards(isSelected: boolean) { return (
{ onInput={linkEvent(this, this.handleNewPasswordChange)} showStrength label={I18NextService.i18n.t("new_password")} + isNew />
@@ -334,6 +335,7 @@ export class Settings extends Component { value={this.state.changePasswordForm.new_password_verify} onInput={linkEvent(this, this.handleNewPasswordVerifyChange)} label={I18NextService.i18n.t("verify_password")} + isNew />