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

vocdoni / saas-backend / 19712533638
63%
main: 63%

Build:
Build:
LAST BUILD BRANCH: f/372-improve-csp-verification-msg
DEFAULT BRANCH: main
Ran 26 Nov 2025 05:39PM UTC
Jobs 1
Files 77
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

26 Nov 2025 05:36PM UTC coverage: 62.77% (+0.02%) from 62.747%
19712533638

Pull #331

github

altergui
refactor(auth): replace hashing with encryption for verification codes

Replace one-way hashing with reversible encryption for verification code
storage and validation. This change enables the system to decrypt stored
codes back to their original values for verification purposes.

Changes:
- Replace HashVerificationCode with SealToken when generating codes
- Replace hash comparison with OpenToken when validating codes
- Add error handling for encryption/decryption operations
- Update tests to validate encrypted code format and length constraints
- Apply changes across user verification, password reset, and code resend flows

This improves the verification flow by allowing bidirectional code
transformation while maintaining security through encryption with
user-specific secrets.
Pull Request #331: refactor(auth): replace hashing with encryption for verification codes

91 of 128 new or added lines in 5 files covered. (71.09%)

4 existing lines in 2 files now uncovered.

6690 of 10658 relevant lines covered (62.77%)

39.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
85.49
-0.82% api/helpers.go
6
75.76
migrations/0005_rename_verifications_code.go
8
87.0
-8.92% internal/utils.go
21
41.33
-0.63% api/users.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
41.33
-0.63% api/users.go
3
87.0
-8.92% internal/utils.go
Jobs
ID Job ID Ran Files Coverage
1 19712533638.1 26 Nov 2025 05:39PM UTC 77
62.77
GitHub Action Run
Source Files on build 19712533638
  • Tree
  • List 77
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #331
  • PR Base - main (#19711548756)
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

© 2026 Coveralls, Inc