mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 08:23:59 +00:00
Removing autocomplete for register and user settings password fields.
- Fixes #708
This commit is contained in:
parent
c22310bdaf
commit
913383ca75
2 changed files with 9 additions and 3 deletions
2
ui/src/components/login.tsx
vendored
2
ui/src/components/login.tsx
vendored
|
@ -187,6 +187,7 @@ export class Login extends Component<any, State> {
|
||||||
type="password"
|
type="password"
|
||||||
id="register-password"
|
id="register-password"
|
||||||
value={this.state.registerForm.password}
|
value={this.state.registerForm.password}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
|
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
@ -206,6 +207,7 @@ export class Login extends Component<any, State> {
|
||||||
type="password"
|
type="password"
|
||||||
id="register-verify-password"
|
id="register-verify-password"
|
||||||
value={this.state.registerForm.password_verify}
|
value={this.state.registerForm.password_verify}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
|
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
|
||||||
class="form-control"
|
class="form-control"
|
||||||
required
|
required
|
||||||
|
|
10
ui/src/components/user.tsx
vendored
10
ui/src/components/user.tsx
vendored
|
@ -81,7 +81,6 @@ export class User extends Component<any, UserState> {
|
||||||
user: {
|
user: {
|
||||||
id: null,
|
id: null,
|
||||||
name: null,
|
name: null,
|
||||||
fedi_name: null,
|
|
||||||
published: null,
|
published: null,
|
||||||
number_of_posts: null,
|
number_of_posts: null,
|
||||||
post_score: null,
|
post_score: null,
|
||||||
|
@ -455,8 +454,9 @@ export class User extends Component<any, UserState> {
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
className={`btn btn-block btn-secondary mt-3 ${!this.state
|
className={`btn btn-block btn-secondary mt-3 ${
|
||||||
.user.matrix_user_id && 'disabled'}`}
|
!this.state.user.matrix_user_id && 'disabled'
|
||||||
|
}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={`https://matrix.to/#/${this.state.user.matrix_user_id}`}
|
href={`https://matrix.to/#/${this.state.user.matrix_user_id}`}
|
||||||
>
|
>
|
||||||
|
@ -609,6 +609,7 @@ export class User extends Component<any, UserState> {
|
||||||
id="user-password"
|
id="user-password"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.new_password}
|
value={this.state.userSettingsForm.new_password}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsNewPasswordChange
|
this.handleUserSettingsNewPasswordChange
|
||||||
|
@ -629,6 +630,7 @@ export class User extends Component<any, UserState> {
|
||||||
id="user-verify-password"
|
id="user-verify-password"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.new_password_verify}
|
value={this.state.userSettingsForm.new_password_verify}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsNewPasswordVerifyChange
|
this.handleUserSettingsNewPasswordVerifyChange
|
||||||
|
@ -649,6 +651,7 @@ export class User extends Component<any, UserState> {
|
||||||
id="user-old-password"
|
id="user-old-password"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value={this.state.userSettingsForm.old_password}
|
value={this.state.userSettingsForm.old_password}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleUserSettingsOldPasswordChange
|
this.handleUserSettingsOldPasswordChange
|
||||||
|
@ -745,6 +748,7 @@ export class User extends Component<any, UserState> {
|
||||||
<input
|
<input
|
||||||
type="password"
|
type="password"
|
||||||
value={this.state.deleteAccountForm.password}
|
value={this.state.deleteAccountForm.password}
|
||||||
|
autoComplete="new-password"
|
||||||
onInput={linkEvent(
|
onInput={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleDeleteAccountPasswordChange
|
this.handleDeleteAccountPasswordChange
|
||||||
|
|
Loading…
Reference in a new issue