diff options
author | Kim Alvefur <zash@zash.se> | 2013-05-28 18:32:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-05-28 18:32:51 +0200 |
commit | eeb633659f244fdcd3a6b1e132e8969e3266603a (patch) | |
tree | a622a0e918046de58861bd7b33b1165d7585eb0a | |
parent | 2e3f198799b27ea3b6d5a9e90b08bff23c42ac62 (diff) | |
download | prosody-eeb633659f244fdcd3a6b1e132e8969e3266603a.tar.gz prosody-eeb633659f244fdcd3a6b1e132e8969e3266603a.zip |
mod_register: get_child_text()!
-rw-r--r-- | plugins/mod_register.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_register.lua b/plugins/mod_register.lua index 141a4997..3d7a068c 100644 --- a/plugins/mod_register.lua +++ b/plugins/mod_register.lua @@ -115,8 +115,8 @@ local function handle_registration_stanza(event) module: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("username"):get_text()); - local password = query:get_child("password"):get_text(); + local username = nodeprep(query:get_child_text("username")); + local password = query:get_child_text("password"); if username and password then if username == session.username then if usermanager_set_password(username, password, session.host) then |