getEmailAuthCode(); // Na review chci poslat mail, telfa tam nenĂ­ aktivnĂ­ if ((findModule(\Modules::TELFA) || findModule(\Modules::DAKTELA)) && !isDevelopment()) { $phone = $user->getKupshopUser()['phone']; if (empty($text = $this->email->getSMSText(['2FA_KOD' => $authCode]))) { $text = $authCode; } $this->SMSHandler->sendSMS($phone, $text); } else { $email = $this->email->getEmail(['2FA_KOD' => $authCode]); $email['to'] = $user->getEmailAuthRecipient(); $this->email->sendEmail($email); } } #[Required] public function setSmsHandler(SMSSendingInterface $SMSHandler) { $this->SMSHandler = $SMSHandler; } }