24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00

Don't export password attribute when it's empty (it's invalid)(#3705)

This commit is contained in:
Badlop 2021-11-08 13:43:18 +01:00
parent 68762146d7
commit 91c9b0446c

View File

@ -166,6 +166,7 @@ export_user(User, Server, Fd) ->
LServer = jid:nameprep(Server), LServer = jid:nameprep(Server),
{PassPlain, PassScram} = case ejabberd_auth:password_format(LServer) of {PassPlain, PassScram} = case ejabberd_auth:password_format(LServer) of
scram -> {[], [format_scram_password(Password)]}; scram -> {[], [format_scram_password(Password)]};
_ when Password == <<"">> -> {[], []};
_ -> {[{<<"password">>, Password}], []} _ -> {[{<<"password">>, Password}], []}
end, end,
Els = Els =