aboutsummaryrefslogtreecommitdiff
path: root/src/authentication.rs
AgeCommit message (Collapse)Author
2026-06-11fix: Fix OsRng import and refactor Redis connection setupKunoiSayami
- Fix password-hash version mismatch (0.6→0.5) causing OsRng to be gated behind missing getrandom feature; enable argon2 rand feature - Extract get_redis_connection() helper to deduplicate Redis client setup across authentication, repo control, and tests - Tighten username validation regex to require ≥2 chars and disallow leading/trailing dots or hyphens - Handle malformed cookies without split_once gracefully (continue instead of panic) - Fix typos: "rated commands" → "related commands" in CLI help text Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: KunoiSayami <[email protected]>
2026-02-09feat: Add configurable Redis URL (claude)KunoiSayami
* feat: Add login rate limiting (claude) * feat: Add SameSite cookie attribute (claude) Signed-off-by: KunoiSayami <[email protected]>
2026-02-09refactor: Remove pam authentication methodKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2025-03-25refactor: Move functions out of main.rsKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>