aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-07-03 17:53:24 +0200
committerKim Alvefur <zash@zash.se>2014-07-03 17:53:24 +0200
commit806a93a534621f8214089ba32c455019e5298bd2 (patch)
tree46ddc02a89a6d14b07fbcea234e2e3936de72a4c /plugins
parent17281a6413be6411c4b6d2c007098886e4c44765 (diff)
downloadprosody-806a93a534621f8214089ba32c455019e5298bd2.tar.gz
prosody-806a93a534621f8214089ba32c455019e5298bd2.zip
mod_register: get_child_text! (thanks Lloyd)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_register.lua4
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