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

umputun / tg-spam / 24625754234
83%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2026 09:22AM UTC
Jobs 1
Files 34
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

19 Apr 2026 09:21AM UTC coverage: 82.948% (+0.05%) from 82.894%
24625754234

push

github

web-flow
fix(server): skip random password when SERVER_AUTH_HASH is set (#394)

* fix(server): skip random password when SERVER_AUTH_HASH is set

When SERVER_AUTH was left at its "auto" default but SERVER_AUTH_HASH was
explicitly set, activateServer still generated a random plain password.
The inner authMiddleware then required that unknown password, breaking
login to /, /check, and other gated routes when only AUTH_HASH was
configured.

With AuthHash present, leave authPassswd empty so authMiddleware short-
circuits and only bcrypt hash auth is enforced. Also drop a dead local
authHash that was only logged, never used.

Related to #381

* test(server): tighten auth-hash regression coverage and doc clarity

- extract runActivateServerForTest helper
- split Test_activateServerAuthHashOnly into 4 sub-tests covering webUI
  and authApi routes with both correct and wrong passwords, asserting
  exact StatusOK / StatusUnauthorized codes
- add Test_activateServerAuthHashOverridesExplicitPasswd pinning hash-
  wins precedence when both SERVER_AUTH and SERVER_AUTH_HASH are set
- reword inline comment in activateServer to accurately describe the
  two-layer auth mechanism
- update README to drop stale "hash is printed" wording and state that
  --server.auth-hash alone is sufficient

9 of 9 new or added lines in 1 file covered. (100.0%)

6995 of 8433 relevant lines covered (82.95%)

258.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24625754234.1 19 Apr 2026 09:22AM UTC 34
82.95
GitHub Action Run
Source Files on build 24625754234
  • Tree
  • List 34
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 951de215 on github
  • Prev Build on master (#24625372048)
  • Next Build on master (#24767742687)
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