|
@@ 757-769 (lines=13) @@
|
| 754 |
|
$this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 755 |
|
} |
| 756 |
|
|
| 757 |
|
protected function applyYubikeyPossessionProvenAndVerifiedEvent(YubikeyPossessionProvenAndVerifiedEvent $event) |
| 758 |
|
{ |
| 759 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 760 |
|
$event->secondFactorId, |
| 761 |
|
$this, |
| 762 |
|
new SecondFactorType('yubikey'), |
| 763 |
|
$event->yubikeyPublicId, |
| 764 |
|
$event->registrationRequestedAt, |
| 765 |
|
$event->registrationCode |
| 766 |
|
); |
| 767 |
|
|
| 768 |
|
$this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 769 |
|
} |
| 770 |
|
|
| 771 |
|
protected function applyPhonePossessionProvenEvent(PhonePossessionProvenEvent $event) |
| 772 |
|
{ |
|
@@ 785-797 (lines=13) @@
|
| 782 |
|
$this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 783 |
|
} |
| 784 |
|
|
| 785 |
|
protected function applyPhonePossessionProvenAndVerifiedEvent(PhonePossessionProvenAndVerifiedEvent $event) |
| 786 |
|
{ |
| 787 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 788 |
|
$event->secondFactorId, |
| 789 |
|
$this, |
| 790 |
|
new SecondFactorType('sms'), |
| 791 |
|
$event->phoneNumber, |
| 792 |
|
$event->registrationRequestedAt, |
| 793 |
|
$event->registrationCode |
| 794 |
|
); |
| 795 |
|
|
| 796 |
|
$this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
protected function applyGssfPossessionProvenEvent(GssfPossessionProvenEvent $event) |
| 800 |
|
{ |
|
@@ 813-825 (lines=13) @@
|
| 810 |
|
$this->unverifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 811 |
|
} |
| 812 |
|
|
| 813 |
|
protected function applyGssfPossessionProvenAndVerifiedEvent(GssfPossessionProvenAndVerifiedEvent $event) |
| 814 |
|
{ |
| 815 |
|
$secondFactor = VerifiedSecondFactor::create( |
| 816 |
|
$event->secondFactorId, |
| 817 |
|
$this, |
| 818 |
|
new SecondFactorType((string)$event->stepupProvider), |
| 819 |
|
$event->gssfId, |
| 820 |
|
$event->registrationRequestedAt, |
| 821 |
|
$event->registrationCode |
| 822 |
|
); |
| 823 |
|
|
| 824 |
|
$this->verifiedSecondFactors->set((string)$secondFactor->getId(), $secondFactor); |
| 825 |
|
} |
| 826 |
|
|
| 827 |
|
protected function applyEmailVerifiedEvent(EmailVerifiedEvent $event) |
| 828 |
|
{ |