OneTime Invites Server handling (#17)
* add server-side handling for one time invites
This commit is contained in:
		| @@ -109,6 +109,16 @@ public class CleanupService : IHostedService, IDisposable | ||||
|             _logger.LogWarning(ex, "Error during user purge"); | ||||
|         } | ||||
|  | ||||
|         try | ||||
|         { | ||||
|             var tempInvites = await dbContext.GroupTempInvites.ToListAsync(); | ||||
|             dbContext.RemoveRange(tempInvites.Where(i => i.ExpirationDate < DateTime.UtcNow)); | ||||
|         } | ||||
|         catch (Exception ex) | ||||
|         { | ||||
|             _logger.LogWarning(ex, "Error during Temp Invite purge"); | ||||
|         } | ||||
|  | ||||
|         _authService.ClearUnauthorizedUsers(); | ||||
|  | ||||
|         _logger.LogInformation($"Cleanup complete"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 rootdarkarchon
					rootdarkarchon