From 19a6184502caad8381894db7419bded4f2da089f Mon Sep 17 00:00:00 2001 From: Philippe Guilmette Date: Thu, 20 May 2021 09:21:11 -0400 Subject: [PATCH] Delete entries from umbracoUserLogin before deleting the user (fix for 10269) --- .../Persistence/Repositories/Implement/UserRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs index 50eb2e6d0eb8..846a547d8130 100644 --- a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs @@ -427,6 +427,7 @@ protected override IEnumerable GetDeleteClauses() { var list = new List { + "DELETE FROM umbracoUserLogin WHERE userId = @id", "DELETE FROM umbracoUser2UserGroup WHERE userId = @id", "DELETE FROM umbracoUser2NodeNotify WHERE userId = @id", "DELETE FROM umbracoUserStartNode WHERE userId = @id",