Comparison

plugins/mod_saslauth.lua @ 7784:9f70d35a1602

core.sessionmanager, mod_saslauth: Introduce intermediate session type for authenticated but unbound sessions so that resource binding is not treated as a normal stanza
author Kim Alvefur <zash@zash.se>
date Tue, 13 Dec 2016 18:15:17 +0100
parent 7298:7056bbaf81ee
child 7896:1a2674123c1c
comparison
equal deleted inserted replaced
7783:f54c960240da 7784:9f70d35a1602
271 :up():up(); 271 :up():up();
272 end 272 end
273 end 273 end
274 end); 274 end);
275 275
276 module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event) 276 module:hook("stanza/iq/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
277 local origin, stanza = event.origin, event.stanza; 277 local origin, stanza = event.origin, event.stanza;
278 local resource; 278 local resource;
279 if stanza.attr.type == "set" then 279 if stanza.attr.type == "set" then
280 local bind = stanza.tags[1]; 280 local bind = stanza.tags[1];
281 resource = bind:get_child("resource"); 281 resource = bind:get_child("resource");