mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Swap 'mnesia' and 'internal' types correctly
This commit is contained in:
parent
fb1fd50df5
commit
821039b7d5
@ -425,6 +425,10 @@ auth_modules() ->
|
|||||||
%% Return the list of authenticated modules for a given host
|
%% Return the list of authenticated modules for a given host
|
||||||
auth_modules(Server) ->
|
auth_modules(Server) ->
|
||||||
LServer = jlib:nameprep(Server),
|
LServer = jlib:nameprep(Server),
|
||||||
|
Default = case gen_mod:default_db(LServer) of
|
||||||
|
mnesia -> internal;
|
||||||
|
DBType -> DBType
|
||||||
|
end,
|
||||||
Methods = ejabberd_config:get_option(
|
Methods = ejabberd_config:get_option(
|
||||||
{auth_method, LServer},
|
{auth_method, LServer},
|
||||||
fun(V) when is_list(V) ->
|
fun(V) when is_list(V) ->
|
||||||
@ -432,7 +436,7 @@ auth_modules(Server) ->
|
|||||||
V;
|
V;
|
||||||
(V) when is_atom(V) ->
|
(V) when is_atom(V) ->
|
||||||
[V]
|
[V]
|
||||||
end, [gen_mod:default_db(LServer)]),
|
end, [Default]),
|
||||||
[jlib:binary_to_atom(<<"ejabberd_auth_",
|
[jlib:binary_to_atom(<<"ejabberd_auth_",
|
||||||
(jlib:atom_to_binary(M))/binary>>)
|
(jlib:atom_to_binary(M))/binary>>)
|
||||||
|| M <- Methods].
|
|| M <- Methods].
|
||||||
|
Loading…
Reference in New Issue
Block a user