Mercurial > prosody-modules
comparison mod_client_management/mod_client_management.lua @ 5592:b43ff0302204
mod_client_management: Include the client id in table in shell command
Since this is the identifier used when revoking clients it is useful to
show it.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 13 Jul 2023 23:24:23 +0200 |
parents | 825c6fb76c48 |
children | 6d0574bfbf5d |
comparison
equal
deleted
inserted
replaced
5591:c7e532ac6bf7 | 5592:b43ff0302204 |
---|---|
418 if not clients or #clients == 0 then | 418 if not clients or #clients == 0 then |
419 return true, "No clients associated with this account"; | 419 return true, "No clients associated with this account"; |
420 end | 420 end |
421 | 421 |
422 local colspec = { | 422 local colspec = { |
423 { title = "ID"; key = "id"; width = math.max(#"client/", #"grant/") + #id.short() }; | |
423 { | 424 { |
424 title = "Software"; | 425 title = "Software"; |
425 key = "user_agent"; | 426 key = "user_agent"; |
426 width = "1p"; | 427 width = "1p"; |
427 mapper = function(user_agent) | 428 mapper = function(user_agent) |