Don't export password attribute when it's empty (it's invalid)(#3705)
This commit is contained in:
parent
68762146d7
commit
91c9b0446c
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue