Software /
code /
prosody
Comparison
util/sasl/anonymous.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7215:a81d9a6e288f |
child | 8555:4f0f5b49bb03 |
comparison
equal
deleted
inserted
replaced
8381:7f6184474149 | 8382:e5d00bf4a4d5 |
---|---|
26 function(username, realm) | 26 function(username, realm) |
27 return true; --for normal usage just return true; if you don't like the supplied username you can return false. | 27 return true; --for normal usage just return true; if you don't like the supplied username you can return false. |
28 end | 28 end |
29 ]] | 29 ]] |
30 | 30 |
31 local function anonymous(self, message) | 31 local function anonymous(self, message) -- luacheck: ignore 212/message |
32 local username; | 32 local username; |
33 repeat | 33 repeat |
34 username = generate_uuid(); | 34 username = generate_uuid(); |
35 until self.profile.anonymous(self, username, self.realm); | 35 until self.profile.anonymous(self, username, self.realm); |
36 self.username = username; | 36 self.username = username; |