From 7ada591f2e68f72355a997110cb7c6dc18c910df Mon Sep 17 00:00:00 2001 From: Dessalines <tyhou13@gmx.com> Date: Mon, 1 Mar 2021 12:38:03 -0500 Subject: [PATCH] Adding more max password lengths. Fixes #211 --- src/shared/components/login.tsx | 1 + src/shared/components/password_change.tsx | 2 ++ src/shared/components/setup.tsx | 2 ++ src/shared/components/user.tsx | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/src/shared/components/login.tsx b/src/shared/components/login.tsx index e2e771c..30b7121 100644 --- a/src/shared/components/login.tsx +++ b/src/shared/components/login.tsx @@ -134,6 +134,7 @@ export class Login extends Component<any, State> { onInput={linkEvent(this, this.handleLoginPasswordChange)} class="form-control" required + maxLength={60} /> <button type="button" diff --git a/src/shared/components/password_change.tsx b/src/shared/components/password_change.tsx index b6dd9e3..6469cb7 100644 --- a/src/shared/components/password_change.tsx +++ b/src/shared/components/password_change.tsx @@ -92,6 +92,7 @@ export class PasswordChange extends Component<any, State> { onInput={linkEvent(this, this.handlePasswordChange)} class="form-control" required + maxLength={60} /> </div> </div> @@ -107,6 +108,7 @@ export class PasswordChange extends Component<any, State> { onInput={linkEvent(this, this.handleVerifyPasswordChange)} class="form-control" required + maxLength={60} /> </div> </div> diff --git a/src/shared/components/setup.tsx b/src/shared/components/setup.tsx index ea6f9b8..53d5021 100644 --- a/src/shared/components/setup.tsx +++ b/src/shared/components/setup.tsx @@ -123,6 +123,7 @@ export class Setup extends Component<any, State> { onInput={linkEvent(this, this.handleRegisterPasswordChange)} class="form-control" required + maxLength={60} /> </div> </div> @@ -138,6 +139,7 @@ export class Setup extends Component<any, State> { onInput={linkEvent(this, this.handleRegisterPasswordVerifyChange)} class="form-control" required + maxLength={60} /> </div> </div> diff --git a/src/shared/components/user.tsx b/src/shared/components/user.tsx index b028c60..3d2718c 100644 --- a/src/shared/components/user.tsx +++ b/src/shared/components/user.tsx @@ -669,6 +669,7 @@ export class User extends Component<any, UserState> { class="form-control" value={this.state.userSettingsForm.new_password} autoComplete="new-password" + maxLength={60} onInput={linkEvent( this, this.handleUserSettingsNewPasswordChange @@ -690,6 +691,7 @@ export class User extends Component<any, UserState> { class="form-control" value={this.state.userSettingsForm.new_password_verify} autoComplete="new-password" + maxLength={60} onInput={linkEvent( this, this.handleUserSettingsNewPasswordVerifyChange @@ -711,6 +713,7 @@ export class User extends Component<any, UserState> { class="form-control" value={this.state.userSettingsForm.old_password} autoComplete="new-password" + maxLength={60} onInput={linkEvent( this, this.handleUserSettingsOldPasswordChange @@ -806,6 +809,7 @@ export class User extends Component<any, UserState> { type="password" value={this.state.deleteAccountForm.password} autoComplete="new-password" + maxLength={60} onInput={linkEvent( this, this.handleDeleteAccountPasswordChange -- 2.44.1