Mercurial > prosody-modules
comparison mod_client_management/mod_client_management.lua @ 5310:5806e05346b8
mod_client_management: Improve representation of authentication methods
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 06 Apr 2023 15:24:49 +0100 |
| parents | 09656e2b4927 |
| children | d4a0d2b5343a |
comparison
equal
deleted
inserted
replaced
| 5309:09656e2b4927 | 5310:5806e05346b8 |
|---|---|
| 402 for _, client in ipairs(clients) do | 402 for _, client in ipairs(clients) do |
| 403 print(row({ | 403 print(row({ |
| 404 id = client.id; | 404 id = client.id; |
| 405 software = client.user_agent and client.user_agent.software; | 405 software = client.user_agent and client.user_agent.software; |
| 406 last_seen = os.date("%Y-%m-%d", client.last_seen); | 406 last_seen = os.date("%Y-%m-%d", client.last_seen); |
| 407 auth_methods = array.collect(it.keys(client.active)):sort(); | 407 auth_methods = array.collect(it.keys(client.active)):sort():concat(", "); |
| 408 })); | 408 })); |
| 409 end | 409 end |
| 410 print(string.rep("-", self.session.width)); | 410 print(string.rep("-", self.session.width)); |
| 411 return true, ("%d clients"):format(#clients); | 411 return true, ("%d clients"):format(#clients); |
| 412 end | 412 end |
