mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(component): sign up password max length notify (#6467)
The input `maxLength` causes password to be automatically truncated without notice user.
This commit is contained in:
@@ -151,8 +151,6 @@ export const PasswordInput: FC<
|
|||||||
className={styles.input}
|
className={styles.input}
|
||||||
type="password"
|
type="password"
|
||||||
size="extraLarge"
|
size="extraLarge"
|
||||||
minLength={passwordLimits.minLength}
|
|
||||||
maxLength={passwordLimits.maxLength}
|
|
||||||
style={{ marginBottom: 20 }}
|
style={{ marginBottom: 20 }}
|
||||||
placeholder={t['com.affine.auth.set.password.placeholder']({
|
placeholder={t['com.affine.auth.set.password.placeholder']({
|
||||||
min: String(passwordLimits.minLength),
|
min: String(passwordLimits.minLength),
|
||||||
@@ -180,8 +178,6 @@ export const PasswordInput: FC<
|
|||||||
className={styles.input}
|
className={styles.input}
|
||||||
type="password"
|
type="password"
|
||||||
size="extraLarge"
|
size="extraLarge"
|
||||||
minLength={passwordLimits.minLength}
|
|
||||||
maxLength={passwordLimits.maxLength}
|
|
||||||
placeholder={t['com.affine.auth.set.password.placeholder.confirm']()}
|
placeholder={t['com.affine.auth.set.password.placeholder.confirm']()}
|
||||||
onChange={onConfirmPasswordChange}
|
onChange={onConfirmPasswordChange}
|
||||||
endFix={
|
endFix={
|
||||||
|
|||||||
Reference in New Issue
Block a user