This commit is contained in:
Aaron Po
2026-08-04 06:22:19 -04:00
parent 7a0620337d
commit 48ee6b0fef
19 changed files with 117 additions and 109 deletions

View File

@@ -34,12 +34,14 @@ public class RegisterUserHandler(
string hashed = passwordInfrastructure.Hash(request.Password);
UserAccount createdUser = await authRepo.RegisterUserAsync(
new UserRegistrationDto(request.Username,
request.FirstName,
request.LastName,
request.Email,
request.DateOfBirth,
hashed)
new UserRegistrationDto(
request.Username,
request.FirstName,
request.LastName,
request.Email,
request.DateOfBirth,
hashed
)
);
string accessToken = tokenService.GenerateAccessToken(createdUser);