diff --git a/src/emqx_reason_codes.erl b/src/emqx_reason_codes.erl index f4b3e4aac..b8a9b9e4b 100644 --- a/src/emqx_reason_codes.erl +++ b/src/emqx_reason_codes.erl @@ -150,6 +150,7 @@ compat(unsuback, _Code) -> undefined. connack_error(client_identifier_not_valid) -> ?RC_CLIENT_IDENTIFIER_NOT_VALID; connack_error(bad_username_or_password) -> ?RC_BAD_USER_NAME_OR_PASSWORD; +connack_error(bad_clientid_or_password) -> ?RC_BAD_USER_NAME_OR_PASSWORD; connack_error(username_or_password_undefined) -> ?RC_BAD_USER_NAME_OR_PASSWORD; connack_error(password_error) -> ?RC_BAD_USER_NAME_OR_PASSWORD; connack_error(not_authorized) -> ?RC_NOT_AUTHORIZED; diff --git a/src/emqx_types.erl b/src/emqx_types.erl index 57ce4b326..7f6b019fe 100644 --- a/src/emqx_types.erl +++ b/src/emqx_types.erl @@ -72,6 +72,7 @@ -type(auth_result() :: success | client_identifier_not_valid | bad_username_or_password + | bad_clientid_or_password | not_authorized | server_unavailable | server_busy