RM-5234 Fix Login filter

This commit is contained in:
Roxana Lucanu-Ghetu
2018-04-30 10:08:19 +03:00
parent 0f898ae622
commit 527a79acf2

View File

@@ -1107,7 +1107,19 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
}
else if (params.getEvent() != null)
{
auditQueryParams.addSearchKey(RM_AUDIT_DATA_EVENT_NAME, params.getEvent());
if (params.getEvent().equalsIgnoreCase("Login.Success"))
{
auditQueryParams.addSearchKey(RM_AUDIT_DATA_LOGIN_FULLNAME, null);
}
else
if (params.getEvent().equalsIgnoreCase("Login.Failure"))
{
auditQueryParams.addSearchKey(RM_AUDIT_DATA_LOGIN_ERROR, null);
}
else
{
auditQueryParams.addSearchKey(RM_AUDIT_DATA_EVENT_NAME, params.getEvent());
}
}
// Get audit entries