diff 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
line wrap: on
line diff
--- a/mod_register_web/mod_register_web.lua	Sat Nov 30 19:00:38 2013 +0100
+++ b/mod_register_web/mod_register_web.lua	Sat Nov 30 19:09:30 2013 +0100
@@ -100,11 +100,11 @@
 end
 
 function register_user(form)
-        local prepped_username = nodeprep(form.username);
-        if usermanager.user_exists(prepped_username, module.host) then
-                return nil, "user-exists";
-        end
-        return usermanager.create_user(prepped_username, form.password, module.host);
+	local prepped_username = nodeprep(form.username);
+	if usermanager.user_exists(prepped_username, module.host) then
+		return nil, "user-exists";
+	end
+	return usermanager.create_user(prepped_username, form.password, module.host);
 end
 
 function generate_success(event, form)