create userdto constructor out of user
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s

This commit is contained in:
2026-04-22 21:19:35 -05:00
parent 68685e6398
commit 1afa30040d
3 changed files with 12 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ public class AuthController : ControllerBase {
[HttpPost("register")]
public async Task<ActionResult> Register(RegisterDto dto) {
var user = new User {
User user = new User {
UserName = dto.UserName,
Email = dto.Email,
CreatedAt = DateTime.UtcNow // yeah why not utc