Software /
code /
prosody-modules
Changeset
1229:12e3bc0fd6ed
mod_register_web: Indentation fix
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 30 Nov 2013 19:09:30 +0100 |
parents | 1228:db85ff22ae97 |
children | 1230:f7c561fbd5a6 |
files | mod_register_web/mod_register_web.lua |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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)