Software /
code /
prosody
Changeset
289:3c8a28c1f331
Merging with Waqas' code.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sat, 15 Nov 2008 20:28:49 +0100 |
parents | 288:dc53343af9ac (current diff) 287:5c405d7b06bb (diff) |
children | 290:f9b7afd42b67 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Sat Nov 15 20:28:09 2008 +0100 +++ b/plugins/mod_saslauth.lua Sat Nov 15 20:28:49 2008 +0100 @@ -35,6 +35,8 @@ 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