mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Authmodule using old style XML:get_attr_s()
This commit is contained in:
parent
9a9633dbc5
commit
6f48f22c71
@ -142,7 +142,7 @@ remove_connection(SID, LUser, LServer) ->
|
|||||||
%% Register connection
|
%% Register connection
|
||||||
register_connection(SID,
|
register_connection(SID,
|
||||||
#jid{luser = LUser, lserver = LServer}, Info) ->
|
#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
|
case AuthModule == (?MODULE) of
|
||||||
true ->
|
true ->
|
||||||
ejabberd_hooks:run(register_user, LServer,
|
ejabberd_hooks:run(register_user, LServer,
|
||||||
|
Loading…
Reference in New Issue
Block a user