aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-11-08 13:43:18 +0100
committerBadlop <badlop@process-one.net>2022-03-25 12:51:24 +0100
commit91c9b0446cdc78ae00be3977ee358e790e5fa0d6 (patch)
tree66b00073abc6bcd8c81ba823f5b53c4d335dd349 /src
parentChecking users is active in SM for JWT authenticated user (#3795) (diff)
Don't export password attribute when it's empty (it's invalid)(#3705)
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_piefxis.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_piefxis.erl b/src/ejabberd_piefxis.erl
index c748e9b2f..add52770d 100644
--- a/src/ejabberd_piefxis.erl
+++ b/src/ejabberd_piefxis.erl
@@ -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 =