Aligned password requirements and increased max-length to 64

This commit is contained in:
Willem-Jan
2026-02-15 13:18:33 +01:00
parent 0b7d7bbe7f
commit 4d58e52729
4 changed files with 17 additions and 9 deletions

View File

@@ -40,9 +40,9 @@ function CreateChildUserModal({ isOpen, onClose, onSuccess }) {
if (!password) {
newErrors.password = 'Password is required'
} else if (password.length < 8) {
newErrors.password = 'Password must be at least 8 characters'
} else if (password.length > 45) {
newErrors.password = 'Password must be less than 45 characters'
newErrors.password = 'Password must be between 8 and 64 characters'
} else if (password.length > 64) {
newErrors.password = 'Password must be between 8 and 64 characters'
}
}
@@ -165,7 +165,7 @@ function CreateChildUserModal({ isOpen, onClose, onSuccess }) {
name='password'
type='password'
id='password'
placeholder='Enter password (8-45 characters)'
placeholder='Enter password (8-64 characters)'
value={password}
onChange={e => {
setPassword(e.target.value)

View File

@@ -25,8 +25,8 @@ function PassowrdChangeModal({ isOpen, onClose }) {
setPasswordError('Passwords do not match')
} else if (password.length < 8) {
setPasswordError('Password must be at least 8 characters')
} else if (password.length > 50) {
setPasswordError('Password must be less than 50 characters')
} else if (password.length > 64) {
setPasswordError('Password must be less than 64 characters')
} else {
setPasswordError(null)
}
@@ -63,6 +63,7 @@ function PassowrdChangeModal({ isOpen, onClose }) {
label='Password'
type='password'
id='password'
placeholder='Enter password (8-64 characters)'
value={password}
onChange={e => {
setPasswordTouched(true)