Software /
code /
prosody
Diff
plugins/mod_legacyauth.lua @ 1687:0e061ebf565e
mod_legacyauth: Removed useless 'require' call on every login attempt
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 13 Aug 2009 16:45:47 +0500 |
parent | 1523:841d61be198f |
child | 1688:a39a253b5b89 |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Tue Aug 11 21:33:24 2009 +0100 +++ b/plugins/mod_legacyauth.lua Thu Aug 13 16:45:47 2009 +0500 @@ -47,7 +47,6 @@ else username, password, resource = t_concat(username), t_concat(password), t_concat(resource); local reply = st.reply(stanza); - require "core.usermanager" if usermanager.validate_credentials(session.host, username, password) then -- Authentication successful! local success, err = sessionmanager.make_authenticated(session, username);