Não consigo usar o `ejabberd_auth` no meu projeto ** helloworld **
Não consigo usarejabberd_auth
no meuOlá Mundo projeto.
-behaviour(ejabberd_auth).
...
....
try_register(<<"username">>, <<"example.com">>, <<"secret_password">>).
Com isso, recebo o aviso de erro:
helloworld.erl:15: Warning: behaviour ejabberd_auth undefined
-import(ejabberd_auth, [try_register/3]).
...
....
try_register(<<"username">>, <<"example.com">>, <<"secret_password">>).
Com isso eu recebo:
exception error: undefined function ejabberd_auth:try_register/3
Por que não consigo acessarejabberd_auth
?
Estou usando o IntelliJ Idea, com o plugin Erlang instalado.
Obrigado a todos antecipadamente.
ATUALIZAR:
Estou no Ubuntu 16.04 LTS