8 Commits
Author SHA1 Message Date
Cato 9a7210f196 chore(email): remove the dead Brevo SMTP fallback (#694)
Production's SMTP credential has answered "Login denied" since at least
2026-09-05, so every send that "fell back" to it delivered nothing while the
code reported a provider. Mail now goes through Resend (@bitbaum/mail-kit),
or Listmonk when enabled with Resend behind it; a Resend failure is reported
as { success: false } instead of handed to a relay that cannot log in.

Removes transporter.ts, the Brevo probe script, EMAIL_* env, the nodemailer
dependency and its override, and rewrites the email docs to match.
2026-11-10 10:14:57 +01:00
CatoandClaude a44fb929bd feat(auth): every way in on AccountKit's own screens (#655)
/auth/login, /auth/register and /auth/forgot-password are AccountKit's
forms: password, passkey, an email sign-in link, recovery, Sign in with
OrangeCat and the shared bitbaum sign-in, each when its env is set.
/dashboard/security carries AccountKit's account panel (password,
passkeys, two-step sign-in, linked sign-ins, deletion). compat passes
screens: 'accountkit' (AccountKit 0.20).

AccountKit is the only credential writer. evig's /api/auth/register,
forgot-password, reset-password and verify-email and
/api/user/change-password are removed: they shadowed AccountKit's
endpoints of the same names. Kept, as AccountKit hooks or evig's own code:
the per-account lockout, the 6-digit address code (it replaces
AccountKit's confirmation mail), IT-Hilfe's claim link (now an AccountKit
reset token, old links honoured), the team invitation claim, the HR hire,
staff permissions and referral credit. Deletion is refused for a super
admin and for a person on kept records.

Migration 143 (additive, idempotent) makes the panel's rename and
deletion reach users. The e2e job imports the seeded accounts before the
journeys and runs a browser journey through every method, with mail
caught by a sink.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 01:39:27 +01:00
CatoandClaude d2fb2a421b feat(auth): stage AccountKit beside Auth.js, switch off (#637)
evig moves from Auth.js to @bitbaum/accountkit one reversible step at a time.
This step adds everything the switch needs and changes nothing while
AUTH_RUNTIME is unset.

- Migration 142: AccountKit's tables under an `auth_` prefix, plus the
  users <-> auth_users mirror functions, inert until attached.
- scripts/db/accountkit-import.sql: copies accounts under their own ids,
  bcrypt hashes byte for byte, OrangeCat actor ids as `orangecat` rows,
  refuses drift or a live shared runtime, then attaches the mirror triggers.
  The rehearsal CLI always rolls back and prints only counts.
- src/lib/auth/shared/: the runtime (ids: 'uuid', legacy bcrypt), a session
  reader in evig's shape, re-read from `users` on every request, and a
  bridge that answers next-auth/react in evig's login codes, keeping
  evig's lockout. Proxy and change-password follow the switch.
- src/lib/auth/claims.ts: the staff/verification rule, written once and
  used by both runtimes. The jwt callback's three copies now call it.
- CI runs the rehearsal and the real-database journeys after the migration
  chain.

docs/ACCOUNTKIT-MIGRATION.md records what is left before switching, chiefly
the unverified-sign-in policy decision.


Claude-Session: https://claude.ai/code/session_019MDtmuvj9Cecd7DR2Nbirb

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 06:32:19 +01:00
Mao NakamotoandCursor 67531fe8c0 feat(e2e): Phase 4 cleanup, Payrexx SSOT, workshops + service journeys
Community technicians are public when active; Techniker terminology SSOT;
dynamic ID discovery and empty-state fallbacks; Payrexx setup doc; dual-persona
E2E for workshops registration and service appointment assign flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 15:37:07 +02:00
Mao NakamotoandCursor e4411bfd4f fix(db): Hetzner-only DATABASE_URL SSOT and user/admin E2E smoke
Retire cloud DB and AUTH_DB_* split in code, env examples, and docs so
local dev uses Docker Postgres and prod ops use the Hetzner tunnel pattern.
Add Playwright user-admin-flows spec with locale-aware auth helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 13:04:46 +02:00
g-butandClaude Opus 4.6 3419caaa69 docs: update all documentation and configuration for post-Medusa architecture
Remove all Medusa-specific documentation (MEDUSA_*.md, SETUP_*.md,
README_MEDUSA.md, AI_AGENT_QUICK_REFERENCE.md, REVAMPIT_SHOP_*.md).
Update remaining docs, README, AGENTS.md, CLAUDE.md, env examples,
sitemap, and agent config files to reflect the simplified architecture
without Medusa dependency. Replace Medusa.js with WooCommerce in
service offerings documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:44:25 +01:00
Your Name 5a6f84b63d fix: improve auth system reliability and UI responsiveness
- Fix UserMenu buttons to show immediately without waiting for session check
- Update password validation to enforce 12 character minimum
- Add database connection error handling in auth routes
- Improve session provider configuration for non-blocking session checks
- Add graceful error handling for slow local database connections
2026-01-05 15:21:38 +01:00
Your Name 148d91a1b7 Update Dockerfile and TypeScript definitions; enhance health check and user role management
- Added curl to Dockerfile for health check improvements.
- Modified npm install commands to build TypeScript and prune unnecessary packages.
- Updated health check command to use curl for better reliability.
- Adjusted TypeScript definitions for user-related functions to return more specific response types.
- Changed user role options from 'viewer' to 'user' in multiple places for consistency.
- Updated package.json dependencies, including downgrading jsonwebtoken types and switching bcrypt to bcryptjs for compatibility.
- Added new environment variables for email configuration in the env.template file.
- Cleaned up various files by removing unnecessary newlines and ensuring consistent formatting.
2025-12-16 16:11:35 +01:00