Mercurial > prosody-hg
diff plugins/mod_user_account_management.lua @ 10563:e8db377a2983
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 24 Dec 2019 00:39:45 +0100 |
| parents | fcdc65bc6697 |
| children | 74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_user_account_management.lua Tue Dec 24 00:26:40 2019 +0100 +++ b/plugins/mod_user_account_management.lua Tue Dec 24 00:39:45 2019 +0100 @@ -53,9 +53,10 @@ log("info", "User removed their account: %s@%s", username, host); module:fire_event("user-deregistered", { username = username, host = host, source = "mod_register", session = session }); else - local username = nodeprep(query:get_child_text("username")); + local username = query:get_child_text("username"); local password = query:get_child_text("password"); if username and password then + username = nodeprep(username); if username == session.username then if usermanager_set_password(username, password, session.host, session.resource) then session.send(st.reply(stanza));
