From 663fc7829bda223dc42354c339d7356b30515c30 Mon Sep 17 00:00:00 2001 From: J Phani Mahesh Date: Mon, 28 Sep 2015 17:06:13 +0530 Subject: [PATCH] Add init callback to emqttd_auth_mod, fix #318 --- src/emqttd_auth_mod.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emqttd_auth_mod.erl b/src/emqttd_auth_mod.erl index 40eb51cfc..8ec5d16cd 100644 --- a/src/emqttd_auth_mod.erl +++ b/src/emqttd_auth_mod.erl @@ -36,6 +36,8 @@ -ifdef(use_specs). +-callback init(AuthOpts :: list()) -> {ok, State :: any()}. + -callback check(Client, Password, State) -> ok | ignore | {error, string()} when Client :: mqtt_client(), Password :: binary(),