mod_storage_sql2: archive:delete() with username = true deletes for all users
[prosody.git] / plugins / mod_saslauth.lua
index f24eacf87b0925e2cd80c2394eee1df3a00dafe5..4513c511d68d164070438aa05120f93b005e7972 100644 (file)
@@ -242,7 +242,7 @@ module:hook("stream-features", function(event)
                        return;
                end
                origin.sasl_handler = usermanager_get_sasl_handler(module.host, origin);
-               if origin.secure then
+               if origin.encrypted then
                        -- check wether LuaSec has the nifty binding to the function needed for tls-unique
                        -- FIXME: would be nice to have this check only once and not for every socket
                        if origin.conn:socket().getpeerfinished then