mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 14:16:01 +08:00
Fix: password check in page of install (#3978)
This commit is contained in:
parent
f26ad16af7
commit
2fd702a319
@ -48,8 +48,10 @@ const InstallForm = () => {
|
|||||||
showErrorMessage(t('login.error.passwordEmpty'))
|
showErrorMessage(t('login.error.passwordEmpty'))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (!validPassword.test(password))
|
if (!validPassword.test(password)) {
|
||||||
showErrorMessage(t('login.error.passwordInvalid'))
|
showErrorMessage(t('login.error.passwordInvalid'))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user