diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-16 16:52:31 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-16 16:52:31 +0100 |
commit | 612b1ffff129320130095099acc13b335aa14b9c (patch) | |
tree | 6e391ff6608608f181e42c92ee6dfd7c534da255 /plugins/mod_user_account_management.lua | |
parent | 6a2b94e8b8629d6571202a34b6ebbd4793fe4abe (diff) | |
parent | 70a81b5ffdb84e5dc082fee557dc9e3af237bc27 (diff) | |
download | prosody-612b1ffff129320130095099acc13b335aa14b9c.tar.gz prosody-612b1ffff129320130095099acc13b335aa14b9c.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_user_account_management.lua')
-rw-r--r-- | plugins/mod_user_account_management.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_user_account_management.lua b/plugins/mod_user_account_management.lua index 615c1ed6..130ed089 100644 --- a/plugins/mod_user_account_management.lua +++ b/plugins/mod_user_account_management.lua @@ -53,9 +53,10 @@ local function handle_registration_stanza(event) 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)); |