@@ 51-67 (lines=17) @@ | ||
48 | $this->identityService = $identityService; |
|
49 | } |
|
50 | ||
51 | public function handleCompliedWithVettedSecondFactorRevocationEvent( |
|
52 | CompliedWithVettedSecondFactorRevocationEvent $event |
|
53 | ) { |
|
54 | $identity = $this->identityService->find($event->identityId->getIdentityId()); |
|
55 | ||
56 | if ($identity === null) { |
|
57 | return; |
|
58 | } |
|
59 | ||
60 | $this->mailService->sendVettedSecondFactorRevokedByRaEmail( |
|
61 | $identity->preferredLocale, |
|
62 | $identity->commonName, |
|
63 | $identity->email, |
|
64 | $event->secondFactorType, |
|
65 | $event->secondFactorIdentifier |
|
66 | ); |
|
67 | } |
|
68 | ||
69 | public function handleVettedSecondFactorRevokedEvent(SecondFactorRevokedEvent $event) |
|
70 | { |
|
@@ 69-84 (lines=16) @@ | ||
66 | ); |
|
67 | } |
|
68 | ||
69 | public function handleVettedSecondFactorRevokedEvent(SecondFactorRevokedEvent $event) |
|
70 | { |
|
71 | $identity = $this->identityService->find($event->identityId->getIdentityId()); |
|
72 | ||
73 | if ($identity === null) { |
|
74 | return; |
|
75 | } |
|
76 | ||
77 | $this->mailService->sendVettedSecondFactorRevokedByRegistrantEmail( |
|
78 | $identity->preferredLocale, |
|
79 | $identity->commonName, |
|
80 | $identity->email, |
|
81 | $event->secondFactorType, |
|
82 | $event->secondFactorIdentifier |
|
83 | ); |
|
84 | } |
|
85 | } |
|
86 |