comparison mod_register_web/mod_register_web.lua @ 1233:f7b1992e4ff6

mod_register_web: Add missing =
author Kim Alvefur <zash@zash.se>
date Sat, 30 Nov 2013 22:10:07 +0100
parents 12f59489ef6e
children da39ba4047a7
comparison
equal deleted inserted replaced
1232:12f59489ef6e 1233:f7b1992e4ff6
106 return nil, "Username contains forbidden characters"; 106 return nil, "Username contains forbidden characters";
107 end 107 end
108 if usermanager.user_exists(prepped_username, module.host) then 108 if usermanager.user_exists(prepped_username, module.host) then
109 return nil, "Username already taken"; 109 return nil, "Username already taken";
110 end 110 end
111 local ok, err usermanager.create_user(prepped_username, form.password, module.host); 111 local ok, err = usermanager.create_user(prepped_username, form.password, module.host);
112 if ok then 112 if ok then
113 module:fire_event("user-registered", { 113 module:fire_event("user-registered", {
114 username = prepped_username, 114 username = prepped_username,
115 host = module.host, 115 host = module.host,
116 source = module.name 116 source = module.name