| Name | Size | Mode | Actions |
|---|---|---|---|
| ApplicationService.php | 29094 | 0644 | editdlrm |
| AuthService.php | 12728 | 0644 | editdlrm |
| CatalogAggregator.php | 5791 | 0644 | editdlrm |
| CustomerBundleLoader.php | 3952 | 0644 | editdlrm |
| EligibilityEvaluator.php | 17603 | 0644 | editdlrm |
| GoogleAuthService.php | 8285 | 0644 | editdlrm |
| MeritRanker.php | 6279 | 0644 | editdlrm |
| OnboardingService.php | 22947 | 0644 | editdlrm |
| ProductPolicyLoader.php | 3818 | 0644 | editdlrm |
| VerificationService.php | 3752 | 0644 | editdlrm |
/home/alixis5/integrate.sellofinance.com/src/Services/VerificationService.php (3752B)
مرحباً {$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.
", ); } }