git.cweiske.de
/
grauphel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
store client name and last use time for tokens. show them in token management
[grauphel.git]
/
lib
/
token.php
diff --git
a/lib/token.php
b/lib/token.php
index ebb0783b254fafdac34592a9ef6f1d40178673c7..2cf6580cdcc966f065118d4913f64e94cc65b444 100644
(file)
--- a/
lib/token.php
+++ b/
lib/token.php
@@
-69,6
+69,20
@@
class Token
*/
public $callback;
*/
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;
public function __construct($type = null)
{
$this->type = $type;