I cannot use helloworldejabberd_auth in my project .
-behaviour(ejabberd_auth).
...
....
try_register(<<"username">>, <<"example.com">>, <<"secret_password">>).
With this, I get an error warning:
helloworld.erl:15: Warning: behaviour ejabberd_auth undefined
-import(ejabberd_auth, [try_register/3]).
...
....
try_register(<<"username">>, <<"example.com">>, <<"secret_password">>).
With this, I get:
exception error: undefined function ejabberd_auth:try_register/3
Why am I unable to access ? ejabberd_auth
I am using IntelliJ Idea with the Erlang plugin installed.
Thanks to everyone in advance.
UPDATE:
I'm on Ubuntu 16.04 LTS
source
share