diff options
author | Tobias Markmann <tm@ayena.de> | 2008-11-15 20:28:49 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-11-15 20:28:49 +0100 |
commit | 35b187ca4a8b40edcea928aa0dee71ff6f32cbad (patch) | |
tree | 26b3791b0cdd663d68533985f2c82dd568059100 /plugins/mod_saslauth.lua | |
parent | 0d8a36b732987a9cf82437acd513280c9faa4b08 (diff) | |
parent | 1b6b09a27d981017e4678235f54b6871a6dde7ca (diff) | |
download | prosody-35b187ca4a8b40edcea928aa0dee71ff6f32cbad.tar.gz prosody-35b187ca4a8b40edcea928aa0dee71ff6f32cbad.zip |
Merging with Waqas' code.
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 314d2502..2a1485d0 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -35,6 +35,8 @@ local function handle_status(session, status) if status == "failure" then session.sasl_handler = nil; elseif status == "success" then + if not session.sasl_handler.username then error("SASL succeeded but we didn't get a username!"); end -- TODO move this to sessionmanager + sessionmanager.make_authenticated(session, session.sasl_handler.username); session.sasl_handler = nil; session:reset_stream(); end |