Remove min and max length from password input when using login form (#2643)

This commit is contained in:
SleeplessOne1917 2024-07-30 13:48:49 +00:00 committed by GitHub
parent e09127467c
commit 66277e6ece
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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