Prevent password length error silent truncation (#2364)

* Prevent password fields from silently truncating too-long passwords

* Use existing i18 translation

---------

Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
This commit is contained in:
SleeplessOne1917 2024-02-16 13:12:05 +00:00 committed by GitHub
parent 64c0ba37d2
commit cc0177a4aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 5d4946e598630e06b890400ca92696d533ad9edb
Subproject commit 91563f222284e19def549ac5247039b398c78931

View file

@ -97,8 +97,8 @@ class PasswordInput extends Component<PasswordInputProps, PasswordInputState> {
onInput={onInput}
value={value}
required
maxLength={60}
minLength={10}
pattern=".{10,60}"
title={I18NextService.i18n.t("invalid_password")}
/>
<button
className="btn btn-outline-dark"