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.