mirror of
https://github.com/rustfs/console.git
synced 2026-09-24 16:30:56 +08:00
fix: resolved #23
This commit is contained in:
@@ -191,13 +191,13 @@ const validate = () => {
|
||||
|
||||
if (!editForm.accessKey.trim()) {
|
||||
errors.accessKey = t('Please enter username')
|
||||
} else if (!/^.{8,16}$/.test(editForm.accessKey)) {
|
||||
} else if (!/^.{6,16}$/.test(editForm.accessKey)) {
|
||||
errors.accessKey = t('username length cannot be less than 8 characters and greater than 16 characters')
|
||||
}
|
||||
|
||||
if (!editForm.secretKey.trim()) {
|
||||
errors.secretKey = t('Please enter password')
|
||||
} else if (!/^.{8,16}$/.test(editForm.secretKey)) {
|
||||
} else if (!/^.{6,16}$/.test(editForm.secretKey)) {
|
||||
errors.secretKey = t('password length cannot be less than 8 characters and greater than 16 characters')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user