Software /
code /
prosody
Comparison
util/sasl/anonymous.lua @ 3981:2b0b8fe68df2
util.sasl.*, mod_auth_*, mod_saslauth: Pass SASL handler as first parameter to SASL profile callbacks.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 27 Dec 2010 19:57:04 +0500 |
parent | 3155:c713fa2ba80c |
child | 4113:65482a852c4d |
comparison
equal
deleted
inserted
replaced
3980:6b2fac6602b3 | 3981:2b0b8fe68df2 |
---|---|
32 | 32 |
33 local function anonymous(self, message) | 33 local function anonymous(self, message) |
34 local username; | 34 local username; |
35 repeat | 35 repeat |
36 username = generate_uuid(); | 36 username = generate_uuid(); |
37 until self.profile.anonymous(username, self.realm); | 37 until self.profile.anonymous(self, username, self.realm); |
38 self.username = username; | 38 self.username = username; |
39 return "success" | 39 return "success" |
40 end | 40 end |
41 | 41 |
42 function init(registerMechanism) | 42 function init(registerMechanism) |