Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function create(AbstractUser $user, array $context = []): ?RawMessage |
||
27 | { |
||
28 | if (!$this->enabled) { |
||
29 | return null; |
||
30 | } |
||
31 | |||
32 | $this->initUser($user); |
||
33 | |||
34 | $token = $user->plainNewEmailVerificationToken; |
||
35 | $user->plainNewEmailVerificationToken = null; |
||
36 | if ($token) { |
||
37 | $context['redirect_url'] = $this->getTokenUrl($token, $user->getUsername()); |
||
|
|||
38 | } |
||
39 | |||
40 | return $this->createEmailMessage($context); |
||
41 | } |
||
48 |