lib/private/Authentication/Token/DefaultToken.php 1 location
|
@@ 123-131 (lines=9) @@
|
| 120 |
|
return parent::getPassword(); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function jsonSerialize() { |
| 124 |
|
return [ |
| 125 |
|
'id' => $this->id, |
| 126 |
|
'name' => $this->name, |
| 127 |
|
'lastActivity' => $this->lastActivity, |
| 128 |
|
'type' => $this->type, |
| 129 |
|
'scope' => $this->getScopeAsArray() |
| 130 |
|
]; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
/** |
| 134 |
|
* Get the timestamp of the last password check |
lib/private/Authentication/Token/PublicKeyToken.php 1 location
|
@@ 141-149 (lines=9) @@
|
| 138 |
|
return parent::getPassword(); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
public function jsonSerialize() { |
| 142 |
|
return [ |
| 143 |
|
'id' => $this->id, |
| 144 |
|
'name' => $this->name, |
| 145 |
|
'lastActivity' => $this->lastActivity, |
| 146 |
|
'type' => $this->type, |
| 147 |
|
'scope' => $this->getScopeAsArray() |
| 148 |
|
]; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
/** |
| 152 |
|
* Get the timestamp of the last password check |