docs: Update apps/emqx_dashboard/src/emqx_dashboard_admin.erl

This commit is contained in:
Zaiming (Stone) Shi 2023-01-16 11:42:07 +01:00 committed by Zhongwen Deng
parent c549379b7c
commit b9911e281e
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ do_add_user(Username, Password, Desc) ->
%% 0-9 or A-Z or a-z or $_
legal_username(<<>>) ->
{error, <<"Username can not be empty">>};
{error, <<"Username cannot be empty">>};
legal_username(UserName) ->
case re:run(UserName, "^[_a-zA-Z0-9]*$", [{capture, none}]) of
nomatch ->