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

vocdoni / saas-backend / 28366731294
63%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 10:58AM UTC
Jobs 1
Files 113
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

29 Jun 2026 10:51AM UTC coverage: 62.512% (+0.04%) from 62.475%
28366731294

push

github

web-flow
fix(api): reject password reset on wrong code (#527.1) (#528)

* fix(api): reject password reset on wrong code and invalidate used codes

resetUserPasswordHandler wrote ErrUnauthorized on a reset-code mismatch
but did not return, so execution fell through and stored the
attacker-supplied password. This allowed account takeover for any
account with a live password-reset record.

- return immediately after the code mismatch error
- delete the reset code after a successful reset so it cannot be reused
- add DeleteUserVerificationCode DB helper
- add regression test covering wrong code, reused code and success paths

Refs #527 (1)

10 of 13 new or added lines in 2 files covered. (76.92%)

1 existing line in 1 file now uncovered.

10090 of 16141 relevant lines covered (62.51%)

45.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
56.64
0.76% api/users.go

Coverage Regressions

Lines Coverage ∆ File
1
56.64
0.76% api/users.go
Jobs
ID Job ID Ran Files Coverage
1 28366731294.1 29 Jun 2026 10:58AM UTC 113
62.51
GitHub Action Run
Source Files on build 28366731294
  • Tree
  • List 113
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f907cb4f on github
  • Prev Build on main (#28363210535)
  • Next Build on main (#28366841422)
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