From 285aedef2f394fdcbb06a875073327aadbe42519 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Wed, 15 Feb 2023 16:00:52 +0900 Subject: [PATCH] Fix: If user get locked out, unlocking or deleting user fails (Fix #4641) (#4644) This is due to the fact our UserService is a singleton, and it had a reference on UserManager which is scoped. UserManager is caching user entities at the scope level. UserService then had a view completely unsynchronized with the database.