Browse Source

fix(authentication): fix unhook

zhouzb 4 years ago
parent
commit
c323113068
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx_authentication/src/emqx_authentication.erl

+ 1 - 1
apps/emqx_authentication/src/emqx_authentication.erl

@@ -92,7 +92,7 @@ enable() ->
     % end.
 
 disable() ->
-    emqx:unhook('client.authenticate', {}),
+    emqx:unhook('client.authenticate', fun emqx_authentication:authenticate/1),
     % emqx:unhook('client.enhanced_authenticate', {}),
     ok.