Refactor: Simplify user authentication flow

- Remove redundant validation logic in login handler
 - Consolidate session token generation into a single utility function  
- Update error handling to use consistent HTTP status codes
This commit is contained in:
Eric Coissac
2026-04-27 20:17:06 +02:00
parent 58391886a3
commit e7fa60a3a2
15 changed files with 978 additions and 48 deletions
+14
View File
@@ -25,11 +25,25 @@ $(MKDOCS): $(VENV)/bin/activate
# ── obikmer binary ───────────────────────────────────────────────────────────
PROFILE_FILE := profile.pb
PPROF_PORT := 8081
.PHONY: obikmer
obikmer:
cargo build --release --manifest-path $(CARGO_DIR)/Cargo.toml --bin obikmer
.PHONY: debug
debug:
cargo build --manifest-path $(CARGO_DIR)/Cargo.toml --bin obikmer
.PHONY: profile-build
profile-build:
cargo build --release --manifest-path $(CARGO_DIR)/Cargo.toml \
--bin obikmer --features obikmer/profiling
.PHONY: profile-view
profile-view:
go tool pprof -http=127.0.0.1:$(PPROF_PORT) $(PROFILE_FILE)
# ── documentation ─────────────────────────────────────────────────────────────
.PHONY: doc