Skip to content

Instantly share code, notes, and snippets.

@naveedmurtuza
Created July 31, 2024 15:22
Show Gist options
  • Save naveedmurtuza/da3e416d7d8a241dad2ecdb6ec714d2a to your computer and use it in GitHub Desktop.
Save naveedmurtuza/da3e416d7d8a241dad2ecdb6ec714d2a to your computer and use it in GitHub Desktop.
sequenceDiagram
participant Client
participant Controller
participant ResourceHelper
participant EmailSessionHelper
participant JsonResult
Client->>Controller: Request
Controller->>ResourceHelper: GetResourceString("/global/captcha", "CAPTCHA_DCF_V3_THRESHOLD_SCORE")
ResourceHelper-->>Controller: thresholdScore
Controller->>Controller: Convert.ToDouble(thresholdScore)
alt score < thresholdScore
Controller->>EmailSessionHelper: SetValue("DCFHighRisk", true)
Controller->>EmailSessionHelper: SetValue("recaptchaSuccess", false)
Controller->>JsonResult: new JsonResult({CaptchaV3Score, RiskCode, IsCaptchaSuccess: false, CheckV2HighRisk: true})
else score >= thresholdScore
Controller->>EmailSessionHelper: SetValue("DCFHighRisk", false)
Controller->>EmailSessionHelper: SetValue("recaptchaSuccess", true)
Controller->>JsonResult: new JsonResult({CaptchaV3Score, RiskCode, IsCaptchaSuccess: true, CheckV2HighRisk: false})
end
JsonResult-->>Client: JsonResponse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment