diff options
author | Dessalines <tyhou13@gmx.com> | 2020-05-12 14:36:22 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-05-12 14:36:22 -0400 |
commit | 913383ca759c10004430c79f95985d6bc2fe1866 (patch) | |
tree | 3edff60eae3cf3e04b050cc19c0ba3312d93e374 /ui/src/components/user.tsx | |
parent | c22310bdaf0d289e83a99aa34e1c015c7078b10e (diff) |
Removing autocomplete for register and user settings password fields.
- Fixes #708
Diffstat (limited to 'ui/src/components/user.tsx')
-rw-r--r-- | ui/src/components/user.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index bf67a5fd..eded9998 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -81,7 +81,6 @@ export class User extends Component<any, UserState> { user: { id: null, name: null, - fedi_name: null, published: null, number_of_posts: null, post_score: null, @@ -455,8 +454,9 @@ export class User extends Component<any, UserState> { ) : ( <> <a - className={`btn btn-block btn-secondary mt-3 ${!this.state - .user.matrix_user_id && 'disabled'}`} + className={`btn btn-block btn-secondary mt-3 ${ + !this.state.user.matrix_user_id && 'disabled' + }`} target="_blank" href={`https://matrix.to/#/${this.state.user.matrix_user_id}`} > @@ -609,6 +609,7 @@ export class User extends Component<any, UserState> { id="user-password" class="form-control" value={this.state.userSettingsForm.new_password} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsNewPasswordChange @@ -629,6 +630,7 @@ export class User extends Component<any, UserState> { id="user-verify-password" class="form-control" value={this.state.userSettingsForm.new_password_verify} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsNewPasswordVerifyChange @@ -649,6 +651,7 @@ export class User extends Component<any, UserState> { id="user-old-password" class="form-control" value={this.state.userSettingsForm.old_password} + autoComplete="new-password" onInput={linkEvent( this, this.handleUserSettingsOldPasswordChange @@ -745,6 +748,7 @@ export class User extends Component<any, UserState> { <input type="password" value={this.state.deleteAccountForm.password} + autoComplete="new-password" onInput={linkEvent( this, this.handleDeleteAccountPasswordChange |