/home/alixis5/integrate.sellofinance.com/src/Services
NameSizeModeActions
ApplicationService.php290940644editdlrm
AuthService.php127280644editdlrm
CatalogAggregator.php57910644editdlrm
CustomerBundleLoader.php39520644editdlrm
EligibilityEvaluator.php176030644editdlrm
GoogleAuthService.php82850644editdlrm
MeritRanker.php62790644editdlrm
OnboardingService.php229470644editdlrm
ProductPolicyLoader.php38180644editdlrm
VerificationService.php37520644editdlrm
Edit: /home/alixis5/integrate.sellofinance.com/src/Services/VerificationService.php (3752B)
emailOtp->generateAndSend( $appUserId, $emailAddress, $subject, fn(string $otp) => $preferredLanguage === 'ar' ? "

مرحباً {$greeting}،

رمز التحقق الخاص بك هو: {$otp}

صالح لمدة 15 دقيقة.

" : "

Hello {$greeting},

Your verification code is: {$otp}

It expires in 15 minutes.

", ); } /** * Verify a submitted OTP. Marks the user's email as verified on success. * * @throws OtpExpiredException * @throws TooManyAttemptsException * @throws InvalidOtpException * @throws \RuntimeException 404 if user not found */ public function verify(string $appUserId, string $submittedOtp): void { $user = $this->appUserRepo->findById($appUserId); if ($user === null) { throw new \RuntimeException('User not found', 404); } if ($user->emailVerified) { return; } $this->emailOtp->verify($appUserId, $submittedOtp); $this->appUserRepo->markEmailVerified($appUserId); } /** * Resend OTP, enforcing max-attempts lockout. * * @throws TooManyAttemptsException * @throws \RuntimeException 404 if user not found */ public function resend( string $appUserId, string $emailAddress, string $preferredLanguage = 'en', string $displayName = '', ): string { $user = $this->appUserRepo->findById($appUserId); if ($user === null) { throw new \RuntimeException('User not found', 404); } $greeting = $displayName ?: $emailAddress; $subject = $preferredLanguage === 'ar' ? 'رمز التحقق من حساب SelloFinance' : 'Verify your SelloFinance account'; return $this->emailOtp->resend( $appUserId, $emailAddress, $subject, fn(string $otp) => $preferredLanguage === 'ar' ? "

مرحباً {$greeting}،

رمز التحقق الخاص بك هو: {$otp}

صالح لمدة 15 دقيقة.

" : "

Hello {$greeting},

Your verification code is: {$otp}

It expires in 15 minutes.

", ); } }