mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
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:
parent
64c0ba37d2
commit
cc0177a4aa
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 5d4946e598630e06b890400ca92696d533ad9edb
|
Subproject commit 91563f222284e19def549ac5247039b398c78931
|
|
@ -97,8 +97,8 @@ class PasswordInput extends Component<PasswordInputProps, PasswordInputState> {
|
||||||
onInput={onInput}
|
onInput={onInput}
|
||||||
value={value}
|
value={value}
|
||||||
required
|
required
|
||||||
maxLength={60}
|
pattern=".{10,60}"
|
||||||
minLength={10}
|
title={I18NextService.i18n.t("invalid_password")}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="btn btn-outline-dark"
|
className="btn btn-outline-dark"
|
||||||
|
|
Loading…
Reference in a new issue