diff --git a/LeaderboardBackend/Services/Impl/AccountConfirmationService.cs b/LeaderboardBackend/Services/Impl/AccountConfirmationService.cs index 0d48d333..a723534c 100644 --- a/LeaderboardBackend/Services/Impl/AccountConfirmationService.cs +++ b/LeaderboardBackend/Services/Impl/AccountConfirmationService.cs @@ -43,7 +43,6 @@ public async Task CreateConfirmationAndSendEmail(User AccountConfirmation newConfirmation = new() { - CreatedAt = now, ExpiresAt = now + Duration.FromHours(1), UserId = user.Id, }; diff --git a/LeaderboardBackend/Services/Impl/AccountRecoveryService.cs b/LeaderboardBackend/Services/Impl/AccountRecoveryService.cs index a1728653..5d252fe6 100644 --- a/LeaderboardBackend/Services/Impl/AccountRecoveryService.cs +++ b/LeaderboardBackend/Services/Impl/AccountRecoveryService.cs @@ -43,7 +43,6 @@ public async Task CreateRecoveryAndSendEmail(User user) AccountRecovery recovery = new() { - CreatedAt = now, ExpiresAt = now + Duration.FromHours(1), User = user }; diff --git a/LeaderboardBackend/Services/Impl/UserService.cs b/LeaderboardBackend/Services/Impl/UserService.cs index f6bf1812..081e856f 100644 --- a/LeaderboardBackend/Services/Impl/UserService.cs +++ b/LeaderboardBackend/Services/Impl/UserService.cs @@ -9,7 +9,7 @@ namespace LeaderboardBackend.Services; -public class UserService(ApplicationContext applicationContext, IAuthService authService, IClock clock) : IUserService +public class UserService(ApplicationContext applicationContext, IAuthService authService) : IUserService { // TODO: Convert return sig to Task public async Task GetUserById(Guid id) @@ -86,7 +86,6 @@ public async Task CreateUser(RegisterRequest request) Email = request.Email, Password = BCryptNet.EnhancedHashPassword(request.Password), Role = UserRole.Registered, - CreatedAt = clock.GetCurrentInstant() }; applicationContext.Users.Add(newUser);