user-delete: swap delete and faillock clear
The latest faillock won't accept clearing for a user that does not
exist, so we need to swap the order to clear the faillock values
before deleting the user.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I175d82a5a5d30048aab4056acf080f3f2fe74d78
diff --git a/user_mgr.cpp b/user_mgr.cpp
index 9cc68e1..5bb1509 100644
--- a/user_mgr.cpp
+++ b/user_mgr.cpp
@@ -395,10 +395,10 @@
throwForUserDoesNotExist(userName);
try
{
- executeUserDelete(userName.c_str());
-
// Clear user fail records
executeUserClearFailRecords(userName.c_str());
+
+ executeUserDelete(userName.c_str());
}
catch (const InternalFailure& e)
{