From 2fd702a31917e2f5ac7d5e5fca34ea82d7bd0130 Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Mon, 29 Apr 2024 15:27:45 +0800 Subject: [PATCH] Fix: password check in page of install (#3978) --- web/app/install/installForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsx index 284062d26f..631812613e 100644 --- a/web/app/install/installForm.tsx +++ b/web/app/install/installForm.tsx @@ -48,8 +48,10 @@ const InstallForm = () => { showErrorMessage(t('login.error.passwordEmpty')) return false } - if (!validPassword.test(password)) + if (!validPassword.test(password)) { showErrorMessage(t('login.error.passwordInvalid')) + return false + } return true }