|
@@ 197-201 (lines=5) @@
|
| 194 |
|
|
| 195 |
|
// Update the password for all tokens |
| 196 |
|
$tokens = $this->mapper->getTokenByUser($token->getUID()); |
| 197 |
|
foreach ($tokens as $t) { |
| 198 |
|
$publicKey = $t->getPublicKey(); |
| 199 |
|
$t->setPassword($this->encryptPassword($password, $publicKey)); |
| 200 |
|
$this->updateToken($t); |
| 201 |
|
} |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
public function rotate(IToken $token, string $oldTokenId, string $newTokenId): IToken { |
|
@@ 338-342 (lines=5) @@
|
| 335 |
|
|
| 336 |
|
// Update the password for all tokens |
| 337 |
|
$tokens = $this->mapper->getTokenByUser($uid); |
| 338 |
|
foreach ($tokens as $t) { |
| 339 |
|
$publicKey = $t->getPublicKey(); |
| 340 |
|
$t->setPassword($this->encryptPassword($password, $publicKey)); |
| 341 |
|
$this->updateToken($t); |
| 342 |
|
} |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
|