mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Merge pull request #997 from tnull/fix_auth_method_order
Minimal auth_method ordering fix during configuration merge.
This commit is contained in:
commit
1336c6c9fa
@ -408,7 +408,7 @@ maps_to_lists(IMap) ->
|
|||||||
end, [], IMap).
|
end, [], IMap).
|
||||||
|
|
||||||
merge_configs(Terms, ResMap) ->
|
merge_configs(Terms, ResMap) ->
|
||||||
lists:foldl(fun({Name, Val}, Map) when is_list(Val) ->
|
lists:foldl(fun({Name, Val}, Map) when is_list(Val), Name =/= auth_method ->
|
||||||
Old = maps:get(Name, Map, #{}),
|
Old = maps:get(Name, Map, #{}),
|
||||||
New = lists:foldl(fun(SVal, OMap) ->
|
New = lists:foldl(fun(SVal, OMap) ->
|
||||||
NVal = if Name == host_config orelse Name == append_host_config ->
|
NVal = if Name == host_config orelse Name == append_host_config ->
|
||||||
|
Loading…
Reference in New Issue
Block a user