Comparison

plugins/mod_legacyauth.lua @ 421:63be85693710

Modules now sending disco replies
author Waqas Hussain <waqas20@gmail.com>
date Wed, 26 Nov 2008 08:27:09 +0500
parent 308:6345cf3e994a
child 438:193f9dd64f17
comparison
equal deleted inserted replaced
420:aa1db0a80089 421:63be85693710
1 1
2 local st = require "util.stanza"; 2 local st = require "util.stanza";
3 local t_concat = table.concat; 3 local t_concat = table.concat;
4
5 require "core.discomanager".set("legacyauth", "jabber:iq:auth");
4 6
5 add_iq_handler("c2s_unauthed", "jabber:iq:auth", 7 add_iq_handler("c2s_unauthed", "jabber:iq:auth",
6 function (session, stanza) 8 function (session, stanza)
7 local username = stanza.tags[1]:child_with_name("username"); 9 local username = stanza.tags[1]:child_with_name("username");
8 local password = stanza.tags[1]:child_with_name("password"); 10 local password = stanza.tags[1]:child_with_name("password");