From d3cfd60b8d48d2c38d5ed5850e445c3a12a0086a Mon Sep 17 00:00:00 2001 From: zhongjin Date: Fri, 5 May 2023 22:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'installer/client/src/core?= =?UTF-8?q?/util/helper/password.ts'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/client/src/core/util/helper/password.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/client/src/core/util/helper/password.ts b/installer/client/src/core/util/helper/password.ts index 2f78f68..add5581 100644 --- a/installer/client/src/core/util/helper/password.ts +++ b/installer/client/src/core/util/helper/password.ts @@ -30,14 +30,14 @@ export function checkPassword(password: string): string | boolean { if (password.length >= 8) { const pwdLevel = getPassLevel(password); if (RegExp(/\s/).test(password)) { - return 'Your password should not contain spaces.'; + return '密码不能包含有空格.'; } if (pwdLevel.reduce((acc, curr) => acc + curr, 0) < 4) { - return 'Your password must contain a lower-case letter, an upper-case letter, a digit and a special character. Try a different password'; + return '密码必须包含有大小写的组合,至少还要有一个特殊字符'; } else { return true; } } else { - return 'Should have at least 8 characters'; + return '至少要有8个字符'; } }