Fix anonymous user login, it wasn't stored in anonymous mnesia table

This commit is contained in:
Badlop 2015-06-01 14:34:49 +02:00
parent 100827ec6e
commit 9a802185ad
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ remove_connection(SID, LUser, LServer) ->
%% Register connection
register_connection(SID,
#jid{luser = LUser, lserver = LServer}, Info) ->
AuthModule = list_to_atom(binary_to_list(xml:get_attr_s(<<"auth_module">>, Info))),
AuthModule = xml:get_attr_s(auth_module, Info),
case AuthModule == (?MODULE) of
true ->
ejabberd_hooks:run(register_user, LServer,