From cedade2569c153b9cfa19c900ec1a4e4a5745288 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 9 Sep 2022 22:29:10 +0800 Subject: [PATCH] chore: update username validate config --- web/src/components/Settings/MyAccountSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/Settings/MyAccountSection.tsx b/web/src/components/Settings/MyAccountSection.tsx index 801bcd80bf1af..189ffe603f7ac 100644 --- a/web/src/components/Settings/MyAccountSection.tsx +++ b/web/src/components/Settings/MyAccountSection.tsx @@ -9,10 +9,10 @@ import showChangePasswordDialog from "../ChangePasswordDialog"; import "../../less/settings/my-account-section.less"; const validateConfig: ValidatorConfig = { - minLength: 4, + minLength: 1, maxLength: 24, noSpace: true, - noChinese: true, + noChinese: false, }; const MyAccountSection = () => {