From eb5c81dea5a60bc65d3ec607daf5ad81fd709928 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 30 Sep 2014 23:13:49 +0200 Subject: store client name and last use time for tokens. show them in token management --- lib/token.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/token.php') diff --git a/lib/token.php b/lib/token.php index ebb0783..2cf6580 100644 --- a/lib/token.php +++ b/lib/token.php @@ -69,6 +69,20 @@ class Token */ public $callback; + /** + * Client name/identifier (user agent) + * + * @var string + */ + public $client; + + /** + * Unix timestamp when the token was used last + * + * @var integer + */ + public $lastuse; + public function __construct($type = null) { $this->type = $type; -- cgit v1.2.3