Skip to content

[ENG-158] feat: Abuse protection for OTP based login#3632

Open
praffq wants to merge 19 commits into
developfrom
ENG-158-otp-abuse-protection
Open

[ENG-158] feat: Abuse protection for OTP based login#3632
praffq wants to merge 19 commits into
developfrom
ENG-158-otp-abuse-protection

Merge branch 'develop' into ENG-158-otp-abuse-protection

19761fc
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 22, 2026 in 0s

77.64% (+0.11%) compared to 73af000

View this Pull Request on Codecov

77.64% (+0.11%) compared to 73af000

Details

Codecov Report

❌ Patch coverage is 83.83838% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.64%. Comparing base (73af000) to head (19761fc).

Files with missing lines Patch % Lines
care/emr/api/otp_viewsets/login.py 83.07% 9 Missing and 2 partials ⚠️
care/emr/tasks/cleanup_expired_otps.py 76.92% 3 Missing ⚠️
care/emr/tasks/__init__.py 50.00% 1 Missing ⚠️
config/settings/deployment.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3632      +/-   ##
===========================================
+ Coverage    77.53%   77.64%   +0.11%     
===========================================
  Files          479      481       +2     
  Lines        22998    23056      +58     
  Branches      2379     2384       +5     
===========================================
+ Hits         17831    17902      +71     
+ Misses        4613     4600      -13     
  Partials       554      554              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.