From c3231130683ed66495a91dc7bebba4fe71479af6 Mon Sep 17 00:00:00 2001 From: zhouzb Date: Tue, 25 May 2021 15:02:31 +0800 Subject: [PATCH] fix(authentication): fix unhook --- apps/emqx_authentication/src/emqx_authentication.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_authentication/src/emqx_authentication.erl b/apps/emqx_authentication/src/emqx_authentication.erl index d02da5cf5..4cf7a0e34 100644 --- a/apps/emqx_authentication/src/emqx_authentication.erl +++ b/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.