24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

Merge pull request #591 from jpegger/patch-1

Anonymous authmodule not registering correctly anonymous users in DB
This commit is contained in:
Evgeny Khramtsov 2015-06-03 20:42:00 +03:00
commit faa4851dbf

View File

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