Changeset

10675:5efd6865486c

mod_tokenauth: Track creation time of tokens
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Feb 2020 21:55:40 +0000
parents 10674:4459afac4d13
children 10676:33c7e4920591
files plugins/mod_tokenauth.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_tokenauth.lua	Fri Feb 28 14:13:04 2020 +0100
+++ b/plugins/mod_tokenauth.lua	Fri Feb 28 21:55:40 2020 +0000
@@ -18,6 +18,7 @@
 
 	local token_info = {
 		owner = actor_jid;
+		created = os.time();
 		expires = token_ttl and (os.time() + token_ttl) or nil;
 		jid = token_jid;
 		session = {