• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vocdoni / saas-backend / 17840288482
63%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2025 08:17PM UTC
Jobs 1
Files 70
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2025 08:14PM UTC coverage: 57.529% (+0.3%) from 57.274%
17840288482

push

github

emmdim
feat: implement flexible 2FA authentication with email OR phone support

Database Schema Enhancements:
- Add `LoginHashPhone` and `LoginHashEmail` fields to `CensusParticipant` struct
- Create MongoDB indexes for efficient lookups on `loginHashPhone` and `loginHashEmail`
- Store separate hashes for email-only and phone-only authentication scenarios

Authentication Logic Improvements:
- Implement `CensusParticipantByLoginHashOrEmailorPhone()` method for flexible participant lookup
- Allow authentication with either email OR phone when both are configured as 2FA methods
- Maintain backward compatibility with existing single-method 2FA configurations

56 of 63 new or added lines in 3 files covered. (88.89%)

5727 of 9955 relevant lines covered (57.53%)

32.98 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
80.44
1.11% db/census_participant.go
4
75.97
-0.05% db/helpers.go
Jobs
ID Job ID Ran Files Coverage
1 17840288482.1 18 Sep 2025 08:17PM UTC 70
57.53
GitHub Action Run
Source Files on build 17840288482
  • Tree
  • List 70
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5a1ae716 on github
  • Prev Build on main (#17832191950)
  • Next Build on main (#17856778774)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc