This commit is contained in:
Aaron Po
2026-08-04 06:22:19 -04:00
parent f665df578c
commit 37667db2f6
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);