plugins/mod_saslauth.lua

changeset 3981
2b0b8fe68df2
parent 3961
94d9fb07c49c
child 3983
38ec7255b111
equal deleted inserted replaced
3980:6b2fac6602b3 3981:2b0b8fe68df2
32 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; 32 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
33 33
34 local new_sasl = require "util.sasl".new; 34 local new_sasl = require "util.sasl".new;
35 35
36 local anonymous_authentication_profile = { 36 local anonymous_authentication_profile = {
37 anonymous = function(username, realm) 37 anonymous = function(sasl, username, realm)
38 return true; -- for normal usage you should always return true here 38 return true; -- for normal usage you should always return true here
39 end 39 end
40 }; 40 };
41 41
42 local function build_reply(status, ret, err_msg) 42 local function build_reply(status, ret, err_msg)

mercurial