diff options
author | Badlop <badlop@process-one.net> | 2021-11-08 13:43:18 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-03-25 12:51:24 +0100 |
commit | 91c9b0446cdc78ae00be3977ee358e790e5fa0d6 (patch) | |
tree | 66b00073abc6bcd8c81ba823f5b53c4d335dd349 /src | |
parent | Checking 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.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ejabberd_piefxis.erl b/src/ejabberd_piefxis.erl index c748e9b2..add52770 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 = |