normogen/backend
goose a3c6a43dfb
Some checks failed
Lint and Build / Lint (push) Has been cancelled
Lint and Build / Build (push) Has been cancelled
Lint and Build / Docker Build (push) Has been cancelled
feat(backend): Complete Phase 2.4 - User Management Enhancement
Phase 2.4 is now COMPLETE!

Implemented Features:

1. Password Recovery 
   - Zero-knowledge recovery phrases
   - Setup, verify, and reset-password endpoints
   - Token invalidation on password reset

2. Enhanced Profile Management 
   - Get, update, and delete profile endpoints
   - Password confirmation for deletion
   - Token revocation on account deletion

3. Email Verification (Stub) 
   - Verification status check
   - Send verification email (stub - no email server)
   - Verify email with token
   - Resend verification email (stub)

4. Account Settings Management 
   - Get account settings endpoint
   - Update account settings endpoint
   - Change password with current password confirmation
   - Token invalidation on password change

New API Endpoints: 11 total

Files Modified:
- backend/src/models/user.rs (added find_by_verification_token)
- backend/src/handlers/auth.rs (email verification handlers)
- backend/src/handlers/users.rs (account settings handlers)
- backend/src/main.rs (new routes)

Testing:
- backend/test-phase-2-4-complete.sh

Documentation:
- backend/PHASE-2-4-COMPLETE.md

Phase 2.4: 100% COMPLETE 
2026-02-15 20:48:39 -03:00
..
config Phase 2.1: Backend project initialized with Docker configuration 2026-02-14 15:30:06 -03:00
docker chore: Clean up temporary docs and start Phase 2.4 2026-02-15 16:33:36 -03:00
scripts chore: Clean up temporary docs and start Phase 2.4 2026-02-15 16:33:36 -03:00
src feat(backend): Complete Phase 2.4 - User Management Enhancement 2026-02-15 20:48:39 -03:00
tests Phase 2.3: JWT Authentication implementation 2026-02-14 20:03:11 -03:00
.dockerignore Config: Change server port to 6800 and remove Cargo.lock dependency 2026-02-15 09:48:11 -03:00
.env.example Phase 2.1: Backend project initialized with Docker configuration 2026-02-14 15:30:06 -03:00
API-TEST-GUIDE.md feat(api): Add API testing script and quick test guide 2026-02-15 15:28:04 -03:00
Cargo.toml Phase 2.3: Complete JWT Authentication with token rotation and revocation 2026-02-15 09:05:34 -03:00
clippy.toml feat(ci): Add Forgejo CI/CD pipeline for linting and building 2026-02-15 19:57:03 -03:00
COMPILATION-FIXES.md docs: Add compilation fixes documentation 2026-02-15 19:02:44 -03:00
defaults.env Phase 2.1: Backend project initialized with Docker configuration 2026-02-14 15:30:06 -03:00
docker-compose.dev.yml chore: Clean up temporary docs and start Phase 2.4 2026-02-15 16:33:36 -03:00
docker-compose.yml Config: Change server port to 6800 and remove Cargo.lock dependency 2026-02-15 09:48:11 -03:00
PASSWORD-RECOVERY-COMPLETE.md docs: Add password recovery completion summary 2026-02-15 18:12:31 -03:00
PASSWORD-RECOVERY-IMPLEMENTED.md feat(backend): Implement password recovery with zero-knowledge phrases 2026-02-15 18:12:10 -03:00
PHASE-2-4-COMPLETE.md feat(backend): Complete Phase 2.4 - User Management Enhancement 2026-02-15 20:48:39 -03:00
PHASE-2.4-TODO.md docs: Add Phase 2.4 TODO list with implementation plan 2026-02-15 16:33:36 -03:00
PROFILE-MANAGEMENT-IMPLEMENTED.md feat(backend): Implement enhanced profile management 2026-02-15 19:33:43 -03:00
rustfmt.toml feat(ci): Add Forgejo CI/CD pipeline for linting and building 2026-02-15 19:57:03 -03:00
test-password-recovery.sh feat(backend): Implement password recovery with zero-knowledge phrases 2026-02-15 18:12:10 -03:00
test-phase-2-4-complete.sh feat(backend): Complete Phase 2.4 - User Management Enhancement 2026-02-15 20:48:39 -03:00
test-profile-management.sh feat(backend): Implement enhanced profile management 2026-02-15 19:33:43 -03:00