refactor: moved hashing logic into application layer for security;

fix: error handling in auth service for database;
refactor: removed redundant taken email check;
chore: removed todos that were completed/not needed;
fix: leaking transactions in complete registration and login on error;
refactor: got rid of txless requests during transactions;
This commit is contained in:
2025-07-06 13:01:00 +03:00
parent 5e32c3cbd3
commit 333817c9e1
9 changed files with 177 additions and 121 deletions

View File

@@ -33,7 +33,6 @@ type RegistrationCompleteRequest struct {
VerificationCode string `json:"verification_code" binding:"required"`
Name string `json:"name" binding:"required" validate:"name"`
Birthday *string `json:"birthday"`
AvatarUrl *string `json:"avatar_url" binding:"http_url,max=255"`
}
type RegistrationCompleteResponse struct {