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
1 changed files with 1 additions and 0 deletions

View File

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