# HG changeset patch # User Luis G.F # Date 1394722727 0 # Node ID c60e9943dcb915bcd507a4c502eda2911630450b # Parent 47d3c1c8a176f70585fa8dadfdfd290c1f73696e Fix problem handling form input diff -r 47d3c1c8a176 -r c60e9943dcb9 mod_email_pass/mod_email_pass.lua --- 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";