Software / code / prosody
Diff
plugins/mod_register.lua @ 2877:1edeb8fe7d14
Merge 0.6.2/waqas with 0.6.2/MattJ
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 03 Mar 2010 22:05:05 +0000 |
| parent | 2831:8ee7ec6fc5fc |
| child | 2923:b7049746bd29 |
line wrap: on
line diff
--- a/plugins/mod_register.lua Fri Feb 19 03:30:27 2010 +0000 +++ b/plugins/mod_register.lua Wed Mar 03 22:05:05 2010 +0000 @@ -141,7 +141,7 @@ username = nodeprep(table.concat(username)); password = table.concat(password); local host = module.host; - if not username then + if not username or username == "" then session.send(st.error_reply(stanza, "modify", "not-acceptable", "The requested username is invalid.")); elseif usermanager_user_exists(username, host) then session.send(st.error_reply(stanza, "cancel", "conflict", "The requested username already exists."));