-
-
Save naveedmurtuza/da3e416d7d8a241dad2ecdb6ec714d2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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