Skip to content

Commit e31cfa6

Browse files
committed
Fix conflict
1 parent 8baf267 commit e31cfa6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

deps/rabbitmq_mqtt/src/rabbit_mqtt_processor.erl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,19 +395,11 @@ check_credentials(Username, Password, SslLoginName, PeerIp) ->
395395
{invalid_creds, {undefined, Pass}} when is_binary(Pass) ->
396396
auth_attempt_failed(PeerIp, <<>>),
397397
?LOG_ERROR("MQTT login failed: no username is provided"),
398-
<<<<<<< HEAD
399398
{error, ?CONNACK_BAD_CREDENTIALS};
400-
{invalid_creds, {User, undefined}} when is_binary(User) ->
401-
auth_attempt_failed(PeerIp, User),
402-
?LOG_ERROR("MQTT login failed for user '~p': no password provided", [User]),
403-
{error, ?CONNACK_BAD_CREDENTIALS};
404-
=======
405-
{error, ?RC_BAD_USER_NAME_OR_PASSWORD};
406399
{invalid_creds, {User, _Pass}} when is_binary(User) ->
407400
auth_attempt_failed(PeerIp, User),
408401
?LOG_ERROR("MQTT login failed for user '~s': no password provided", [User]),
409-
{error, ?RC_BAD_USER_NAME_OR_PASSWORD};
410-
>>>>>>> fb0df64373 (Disallow empty password in MQTT)
402+
{error, ?CONNACK_BAD_CREDENTIALS};
411403
{UserBin, PassBin} ->
412404
{ok, {UserBin, PassBin}}
413405
end.

0 commit comments

Comments
 (0)