Fix KYC Validation Logic in Frontend #186
Notifications
Total Time Spent: 18 seconds
kincses
18 seconds
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mérföldkő: Phase 1: Core Functionality Fixes\nCél: Javítani a frontend KYC ellenőrzés logikáját, hogy a meglévő felhasználókat a rendszer egyenesen a Garázsba (/dashboard) engedje be.\n\n### 🔗 Függőségek (Dependencies)\n- Bemenet (Mikre támaszkodik): Backend /auth/me végpont (person_id mező), Pinia auth store\n- Kimenet (Mik támaszkodnak rá): LoginModal routing, KYC védett route-ok\n\n### 📝 Elemzés\nA backend /auth/me végpontja helyesen küldi a person_id-t a UserResponse-ban. A frontend Pinia store isKycComplete getter-e azonban address_city mezőt vizsgált person_id helyett, így a KYC státusz helytelenül false volt azoknál a usereknél, akik már kitöltötték a KYC-t. Javítás: person_id hozzáadása a UserProfile interfészhez, és a getter átállítása !!user.value?.person_id logikára.
▶️ Munka megkezdve: 2026-06-03 23:03:26
✅ Munka befejezve: 2026-06-03 23:03:45
Technikai Összefoglaló:
Fix: KYC validation logic in frontend auth store. Root cause: isKycComplete getter checked address_city (a UI-only field) instead of person_id (the backend's actual KYC indicator). Fix: Added person_id: number | null to UserProfile interface, changed getter to return !!user.value?.person_id. LoginModal handleLogin was already correct — no changes needed there.
⏱️ Az idő rögzítve.