mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
fix: valid password on reset-password page (#2753)
This commit is contained in:
@@ -62,8 +62,10 @@ const ActivateForm = () => {
|
||||
showErrorMessage(t('login.error.passwordEmpty'))
|
||||
return false
|
||||
}
|
||||
if (!validPassword.test(password))
|
||||
if (!validPassword.test(password)) {
|
||||
showErrorMessage(t('login.error.passwordInvalid'))
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}, [name, password, showErrorMessage, t])
|
||||
|
||||
Reference in New Issue
Block a user