Comparison

util/sasl/anonymous.lua @ 3155:c713fa2ba80c

SASL: Minor cleanup.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 03 Jun 2010 17:48:50 +0500
parent 3116:90a98a6b52ac
child 3981:2b0b8fe68df2
comparison
equal deleted inserted replaced
3154:104f05235cef 3155:c713fa2ba80c
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(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)
43 registerMechanism("ANONYMOUS", {"anonymous"}, anonymous); 43 registerMechanism("ANONYMOUS", {"anonymous"}, anonymous);