mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd_auth_anonymous.erl: Do not purge non anonymous accounts when using anonymous authentication with another type of auth (EJAB-216).
SVN Revision: 805
This commit is contained in:
parent
525b8e9374
commit
ede1693f20
@ -1,5 +1,8 @@
|
||||
2007-06-28 Mickael Remond <mickael.remond@process-one.net>
|
||||
|
||||
* src/ejabberd_auth_anonymous.erl: Do not purge non anonymous accounts
|
||||
when using anonymous authentication with another type of auth.
|
||||
|
||||
* src/ejabberd_service.erl: Added an option to disable from attribute
|
||||
checks in packets coming from an external component (EJAB-275)
|
||||
* doc/guide.tex: Likewise
|
||||
|
@ -136,9 +136,16 @@ register_connection(SID, #jid{luser = LUser, lserver = LServer}) ->
|
||||
|
||||
%% Remove an anonymous user from the anonymous users table
|
||||
unregister_connection(SID, #jid{luser = LUser, lserver = LServer}) ->
|
||||
ejabberd_hooks:run(anonymous_purge_hook, jlib:nameprep(LServer), [LUser, LServer]),
|
||||
purge_hook(anonymous_user_exist(LUser, LServer),
|
||||
LUser, LServer),
|
||||
remove_connection(SID, LUser, LServer).
|
||||
|
||||
%% Launch the hook to purge user data only for anonymous users
|
||||
purge_hook(false, _LUser, _LServer) ->
|
||||
ok;
|
||||
purge_hook(true, LUser, LServer) ->
|
||||
ejabberd_hooks:run(anonymous_purge_hook, LServer, [LUser, LServer]).
|
||||
|
||||
%% ---------------------------------
|
||||
%% Specific anonymous auth functions
|
||||
%% ---------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user