From ae888d29739a365152891863e8b1c550943a62d2 Mon Sep 17 00:00:00 2001 From: Blitblank Date: Fri, 20 Mar 2026 20:07:25 -0500 Subject: [PATCH] fix non-null register attributes --- api/src/Controllers/AuthController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/Controllers/AuthController.cs b/api/src/Controllers/AuthController.cs index 0b53759..e38f04b 100644 --- a/api/src/Controllers/AuthController.cs +++ b/api/src/Controllers/AuthController.cs @@ -22,7 +22,10 @@ public class AuthController : ControllerBase { public async Task Register(RegisterDto dto) { var user = new User { Name = dto.Username, - PasswordHash = BCrypt.Net.BCrypt.HashPassword(dto.Password) // TODO: hashing stage in client + Email = "dummy@goofy.xyz", + PasswordHash = BCrypt.Net.BCrypt.HashPassword(dto.Password), // TODO: secondary hashing stage in client + Role = "admin (FOR NOW !!)", + CreatedAt = DateTime.UtcNow // yeah why not utc }; var newUser = await users_.Create(user);