summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-12 15:26:54 -0400
committerDessalines <tyhou13@gmx.com>2020-05-12 15:26:54 -0400
commit4d02e4c0219055c1f08645f7118b836fb0cdc27c (patch)
tree20d34006b6daf93db7b6df4a6cc82e8565871217 /ui
parentf971e31171b8019b8c92490f4a64c844acfe9d9c (diff)
parent913383ca759c10004430c79f95985d6bc2fe1866 (diff)
Merge branch 'fix_password_autocomplete_fields'
Diffstat (limited to 'ui')
-rw-r--r--ui/src/components/login.tsx2
-rw-r--r--ui/src/components/user.tsx10
2 files changed, 9 insertions, 3 deletions
diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx
index 581c4995..84014f68 100644
--- a/ui/src/components/login.tsx
+++ b/ui/src/components/login.tsx
@@ -187,6 +187,7 @@ export class Login extends Component<any, State> {
type="password"
id="register-password"
value={this.state.registerForm.password}
+ autoComplete="new-password"
onInput={linkEvent(this, this.handleRegisterPasswordChange)}
class="form-control"
required
@@ -206,6 +207,7 @@ export class Login extends Component<any, State> {
type="password"
id="register-verify-password"
value={this.state.registerForm.password_verify}
+ autoComplete="new-password"
onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)}
class="form-control"
required
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