diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-09-30 23:13:49 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-09-30 23:13:49 +0200 |
| commit | eb5c81dea5a60bc65d3ec607daf5ad81fd709928 (patch) | |
| tree | 81407f1e67adba222a020e142d0ebfb15a3f5ef3 /lib/token.php | |
| parent | f38e545235173bb145e4b1c9c29dc2960a0a3389 (diff) | |
| download | grauphel-eb5c81dea5a60bc65d3ec607daf5ad81fd709928.tar.gz grauphel-eb5c81dea5a60bc65d3ec607daf5ad81fd709928.zip | |
store client name and last use time for tokens. show them in token management
Diffstat (limited to 'lib/token.php')
| -rw-r--r-- | lib/token.php | 14 |
1 files changed, 14 insertions, 0 deletions
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; |
