comparison mod_register_web/mod_register_web.lua @ 1229:12e3bc0fd6ed

mod_register_web: Indentation fix
author Kim Alvefur <zash@zash.se>
date Sat, 30 Nov 2013 19:09:30 +0100
parents db85ff22ae97
children f7c561fbd5a6
comparison
equal deleted inserted replaced
1228:db85ff22ae97 1229:12e3bc0fd6ed
98 captcha = generate_captcha(display_options); 98 captcha = generate_captcha(display_options);
99 }) 99 })
100 end 100 end
101 101
102 function register_user(form) 102 function register_user(form)
103 local prepped_username = nodeprep(form.username); 103 local prepped_username = nodeprep(form.username);
104 if usermanager.user_exists(prepped_username, module.host) then 104 if usermanager.user_exists(prepped_username, module.host) then
105 return nil, "user-exists"; 105 return nil, "user-exists";
106 end 106 end
107 return usermanager.create_user(prepped_username, form.password, module.host); 107 return usermanager.create_user(prepped_username, form.password, module.host);
108 end 108 end
109 109
110 function generate_success(event, form) 110 function generate_success(event, form)
111 return render(success_tpl, { jid = nodeprep(form.username).."@"..module.host }); 111 return render(success_tpl, { jid = nodeprep(form.username).."@"..module.host });
112 end 112 end