From 66277e6ecea01bd2d72e85cc5166df56cc8a08bb Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:48:49 +0000 Subject: [PATCH] Remove min and max length from password input when using login form (#2643) --- src/shared/components/common/password-input.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/components/common/password-input.tsx b/src/shared/components/common/password-input.tsx index 518cacb6..62fc2f29 100644 --- a/src/shared/components/common/password-input.tsx +++ b/src/shared/components/common/password-input.tsx @@ -99,8 +99,10 @@ class PasswordInput extends Component { onInput={onInput} value={value} required - pattern=".{10,60}" + pattern=".+" title={I18NextService.i18n.t("invalid_password")} + minLength={isNew ? 10 : undefined} + maxLength={isNew ? 60 : undefined} />