|
@@ 261-269 (lines=9) @@
|
| 258 |
|
$this->updateStatus($event->secondFactorId, SecondFactorStatus::verified()); |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
public function applySecondFactorVettedEvent(SecondFactorVettedEvent $event) |
| 262 |
|
{ |
| 263 |
|
$secondFactor = $this->raSecondFactorRepository->find((string) $event->secondFactorId); |
| 264 |
|
|
| 265 |
|
$secondFactor->documentNumber = $event->documentNumber; |
| 266 |
|
$secondFactor->status = SecondFactorStatus::vetted(); |
| 267 |
|
|
| 268 |
|
$this->raSecondFactorRepository->save($secondFactor); |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
public function applySecondFactorVettedWithoutTokenProofOfPossession(SecondFactorVettedWithoutTokenProofOfPossession $event) |
| 272 |
|
{ |
|
@@ 271-279 (lines=9) @@
|
| 268 |
|
$this->raSecondFactorRepository->save($secondFactor); |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
public function applySecondFactorVettedWithoutTokenProofOfPossession(SecondFactorVettedWithoutTokenProofOfPossession $event) |
| 272 |
|
{ |
| 273 |
|
$secondFactor = $this->raSecondFactorRepository->find((string) $event->secondFactorId); |
| 274 |
|
|
| 275 |
|
$secondFactor->documentNumber = $event->documentNumber; |
| 276 |
|
$secondFactor->status = SecondFactorStatus::vetted(); |
| 277 |
|
|
| 278 |
|
$this->raSecondFactorRepository->save($secondFactor); |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
protected function applyUnverifiedSecondFactorRevokedEvent(UnverifiedSecondFactorRevokedEvent $event) |
| 282 |
|
{ |