Software /
code /
prosody-modules
Changeset
2011:1831c7b23286
mod_net_dovecotauth: Improve variable names for clarity
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 15 Jan 2016 17:19:34 +0100 |
parents | 2010:891a5e925ae5 |
children | 2012:cdba975e9b6e |
files | mod_net_dovecotauth/mod_net_dovecotauth.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_net_dovecotauth/mod_net_dovecotauth.lua Fri Jan 15 17:19:17 2016 +0100 +++ b/mod_net_dovecotauth/mod_net_dovecotauth.lua Fri Jan 15 17:19:34 2016 +0100 @@ -18,7 +18,7 @@ local dump = require"util.serialization".serialize; -- Config -local vhost = module:get_option_string("dovecotauth_host", (next(hosts))); -- TODO Is there a better solution? +local default_vhost = module:get_option_string("dovecotauth_host", (next(hosts))); -- TODO Is there a better solution? local allow_master = module:get_option_boolean("dovecotauth_allow_master", false); -- Active sessions @@ -128,7 +128,7 @@ -- FIXME Should this be on a separate listener? local id = part(); local user = part(); - if user and user_exists(user, vhost) then + if user and user_exists(user, default_vhost) then self:send("USER", id); else self:send("NOTFOUND", id); @@ -149,7 +149,7 @@ function listener.onconnect(conn) s = new_session(conn); sessions[conn] = s; - local g_sasl = new_sasl(vhost, s); + local g_sasl = new_sasl(default_vhost, s); s.g_sasl = g_sasl; s:handshake(); end