Просмотр исходного кода

chore(authn): fix coap authn and update tag for esasl

zhouzb 4 лет назад
Родитель
Сommit
5ecc992944
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl
  2. 1 1
      rebar.config

+ 1 - 1
apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl

@@ -113,7 +113,7 @@ init({ClientId, Username, Password, Channel}) ->
                     password = Password},
     _ = run_hooks('client.connect', [conninfo(State0)], undefined),
     case emqx_access_control:authenticate(clientinfo(State0)) of
-        {ok, _AuthResult} ->
+        ok ->
             ok = emqx_cm:discard_session(ClientId),
 
             _ = run_hooks('client.connack', [conninfo(State0), success], undefined),

+ 1 - 1
rebar.config

@@ -63,7 +63,7 @@
     , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
     , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.9.6"}}}
     , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.2.1"}}}
-    , {esasl, {git, "https://github.com/emqx/esasl", {branch, "refactor/sasl"}}}
+    , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.1.0"}}}
     ]}.
 
 {xref_ignores,