@@ 177-185 (lines=9) @@ | ||
174 | ); |
|
175 | } |
|
176 | ||
177 | private function provePossession($secondFactorId, $identity, $phoneNumber) |
|
178 | { |
|
179 | $command = new ProvePhonePossessionCommand(); |
|
180 | $command->UUID = (string) Uuid::uuid4(); |
|
181 | $command->secondFactorId = $secondFactorId; |
|
182 | $command->identityId = $identity->id; |
|
183 | $command->phoneNumber = $phoneNumber; |
|
184 | $this->pipeline->process($command); |
|
185 | } |
|
186 | ||
187 | private function verifyEmail($identity, $unverifiedSecondFactor) |
|
188 | { |
|
@@ 187-194 (lines=8) @@ | ||
184 | $this->pipeline->process($command); |
|
185 | } |
|
186 | ||
187 | private function verifyEmail($identity, $unverifiedSecondFactor) |
|
188 | { |
|
189 | $command = new VerifyEmailCommand(); |
|
190 | $command->UUID = (string) Uuid::uuid4(); |
|
191 | $command->identityId = $identity->id; |
|
192 | $command->verificationNonce = $unverifiedSecondFactor->verificationNonce; |
|
193 | $this->pipeline->process($command); |
|
194 | } |
|
195 | ||
196 | protected function createIdentity( |
|
197 | Institution $institution, |