Skip to content

Commit

Permalink
Remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Sep 8, 2021
1 parent 89bc64d commit e9e1411
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion big_tests/tests/accounts_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ change_password_tests() ->
%%--------------------------------------------------------------------

init_per_suite(Config1) ->
%Host = ct:get_config({hosts, mim, domain}),
ok = dynamic_modules:ensure_modules(host_type(), required_modules()),
Config2 = [{mod_register_options, mod_register_options()} | Config1],
escalus:init_per_suite([{escalus_user_db, xmpp} | Config2]).
Expand Down
4 changes: 0 additions & 4 deletions src/mod_register.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ iq_handlers() ->
[{ejabberd_local, fun ?MODULE:process_iq/5}, {ejabberd_sm, fun ?MODULE:process_iq/5}].

hooks(HostType) ->
%FIXME handle host_type in hooks
[{c2s_stream_features, HostType, ?MODULE, c2s_stream_features, 50},
{c2s_unauthenticated_iq, HostType, ?MODULE, unauthenticated_iq_register, 50}].

Expand Down Expand Up @@ -238,7 +237,6 @@ register_or_change_password(HostType, Credentials, ClientJID, #jid{lserver = Ser
end.

attempt_cancelation(HostType, #jid{} = ClientJID, #jid{lserver = ServerDomain}, #iq{} = IQ) ->
%Is replacing server lserver with passed hostname ok?
case inband_registration_and_cancelation_allowed(HostType, ServerDomain, ClientJID) of
true ->
%% The response must be sent *before* the
Expand Down Expand Up @@ -295,8 +293,6 @@ try_register_or_set_password(HostType, User, Server, Password, #jid{user = User,
IQ, SubEl, _Source, Lang) ->
try_set_password(HostType, UserJID, Password, IQ, SubEl, Lang);
try_register_or_set_password(HostType, User, Server, Password, _From, IQ, SubEl, Source, Lang) ->
?LOG_DEBUG(#{what => user_data_info,
host=> HostType, reason => #{user => User, server => Server, password => Password}}),
case check_timeout(Source) of
true ->
case try_register(HostType, User, Server, Password, Source, Lang) of
Expand Down

0 comments on commit e9e1411

Please sign in to comment.