Changeset

1345:c60e9943dcb9

Fix problem handling form input
author Luis G.F <luisgf@gmail.com>
date Thu, 13 Mar 2014 14:58:47 +0000
parents 1344:47d3c1c8a176
children 1346:5608dd296d5f
files mod_email_pass/mod_email_pass.lua
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_email_pass/mod_email_pass.lua	Tue Mar 11 21:13:40 2014 +0100
+++ b/mod_email_pass/mod_email_pass.lua	Thu Mar 13 14:58:47 2014 +0000
@@ -225,10 +225,9 @@
 end
 
 function send_token_mail(form, origin)
-	local user, host, resource = jidutil.split(form.username);
-	local prepped_username = nodeprep(user);
+	local prepped_username = nodeprep(form.username);
 	local prepped_mail = form.email;
-	local jid = prepped_username .. "@" .. host;
+	local jid = prepped_username .. "@" .. module.host;
 
     if not prepped_username then
     	return nil, "El usuario contiene caracteres incorrectos";