chore: apply suggestions from code review

Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
This commit is contained in:
zhongwencool 2023-01-16 18:01:38 +08:00 committed by Zhongwen Deng
parent 82af854c4a
commit c549379b7c
1 changed files with 2 additions and 2 deletions

View File

@ -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">>).