]> Untitled Git - lemmy-ui.git/commitdiff
Adding more max password lengths. Fixes #211
authorDessalines <tyhou13@gmx.com>
Mon, 1 Mar 2021 17:38:03 +0000 (12:38 -0500)
committerDessalines <tyhou13@gmx.com>
Mon, 1 Mar 2021 17:38:03 +0000 (12:38 -0500)
src/shared/components/login.tsx
src/shared/components/password_change.tsx
src/shared/components/setup.tsx
src/shared/components/user.tsx

index e2e771c2e1e65737eb68b1869c37eccfe5eaf130..30b7121380a07510b34a6bb89d17d8fc8c02fe76 100644 (file)
@@ -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"
index b6dd9e3376a67bfc26451bb4e9c7d73667ad1eb4..6469cb7b960f2a7f7db0f91cf82cec37459bfc24 100644 (file)
@@ -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>
index ea6f9b85bc78ddb022033e02b6ba686db0d80b4d..53d502149860140e18fc3b487ae7c8a71cec5e6e 100644 (file)
@@ -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>
index b028c60841b348948f8a4b31dd4a313b7cd71ae2..3d2718cc7a5331cdb3d19df21db6a248236c6af9 100644 (file)
@@ -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