showStrength?: boolean;
label?: string | null;
showForgotLink?: boolean;
+ isNew?: boolean;
}
interface PasswordInputState {
showStrength,
label,
showForgotLink,
+ isNew,
},
state: { show },
} = this;
type={show ? "text" : "password"}
className="form-control"
aria-describedby={id}
- autoComplete="on"
+ autoComplete={isNew ? "new-password" : "current-password"}
onInput={onInput}
value={value}
required
value={this.state.form.password}
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
label={I18NextService.i18n.t("password")}
+ isNew
/>
</div>
<div className="mb-3">
value={this.state.form.password_verify}
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
label={I18NextService.i18n.t("verify_password")}
+ isNew
/>
</div>
<div className="mb-3 row">
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
showStrength
label={I18NextService.i18n.t("password")}
+ isNew
/>
</div>
value={this.state.form.password_verify}
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
label={I18NextService.i18n.t("verify_password")}
+ isNew
/>
</div>
onInput={linkEvent(this, this.handlePasswordChange)}
showStrength
label={I18NextService.i18n.t("new_password")}
+ isNew
/>
</div>
<div className="mb-3">
);
}
- userSettings(isSelected) {
+ userSettings(isSelected: boolean) {
return (
<div
className={classNames("tab-pane show", {
);
}
- blockCards(isSelected) {
+ blockCards(isSelected: boolean) {
return (
<div
className={classNames("tab-pane", {
onInput={linkEvent(this, this.handleNewPasswordChange)}
showStrength
label={I18NextService.i18n.t("new_password")}
+ isNew
/>
</div>
<div className="mb-3">
value={this.state.changePasswordForm.new_password_verify}
onInput={linkEvent(this, this.handleNewPasswordVerifyChange)}
label={I18NextService.i18n.t("verify_password")}
+ isNew
/>
</div>
<div className="mb-3">