25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

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

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,