Changeset

5637:991b47778bf3

mod_register: get_child_text()!
author Kim Alvefur <zash@zash.se>
date Tue, 28 May 2013 18:32:51 +0200
parents 5636:d323932ecf18
children 5638:c5b7f4858014
files plugins/mod_register.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_register.lua	Tue May 28 16:10:22 2013 +0100
+++ b/plugins/mod_register.lua	Tue May 28 18:32:51 2013 +0200
@@ -115,8 +115,8 @@
 			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