2026.03.29 20:00 Gitea_manager javítás előtt

This commit is contained in:
Roo
2026-03-29 17:59:06 +00:00
parent 03258db091
commit ba8b6579ef
148 changed files with 7951 additions and 591 deletions

View File

@@ -66,4 +66,12 @@ async def complete_kyc(kyc_in: UserKYCComplete, db: AsyncSession = Depends(get_d
user = await AuthService.complete_kyc(db, current_user.id, kyc_in)
if not user:
raise HTTPException(status_code=404, detail="User nem található.")
return {"status": "success", "message": "Fiók aktiválva."}
return {"status": "success", "message": "Fiók aktiválva."}
@router.get("/me")
async def get_current_user_profile(current_user: User = Depends(get_current_user)):
"""
Return current user profile (alias for /users/me).
"""
from app.schemas.user import UserResponse
return UserResponse.model_validate(current_user)