From c549379b7c682379315937581867eec832b37ab5 Mon Sep 17 00:00:00 2001 From: zhongwencool Date: Mon, 16 Jan 2023 18:01:38 +0800 Subject: [PATCH] chore: apply suggestions from code review Co-authored-by: Zaiming (Stone) Shi --- apps/emqx_dashboard/src/emqx_dashboard_admin.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_dashboard/src/emqx_dashboard_admin.erl b/apps/emqx_dashboard/src/emqx_dashboard_admin.erl index b4f0d7d4a..84641918f 100644 --- a/apps/emqx_dashboard/src/emqx_dashboard_admin.erl +++ b/apps/emqx_dashboard/src/emqx_dashboard_admin.erl @@ -122,8 +122,8 @@ legal_username(UserName) -> -define(NUMBER, "0123456789"). -define(SPECIAL_CHARS, "!@#$%^&*()_+-=[]{}\"|;':,./<>?`~ "). -define(INVALID_PASSWORD_MSG, << - "Bad username." - "At least two different kind of characters from groups of letters, numbers, and special characters." + "Bad password. " + "At least two different kind of characters from groups of letters, numbers, and special characters. " "For example, if password is composed from letters, it must contain at least one number or a special character." >>). -define(BAD_PASSWORD_LEN, <<"The range of password length is 8~64">>).