Add validation for user deletion #244
Merged
pahansith
merged 3 commits from prathabanKavin/device-mgt-core:uservalidate
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'prathabanKavin/device-mgt-core:uservalidate'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Purpose
Description
username = domain + '/' + username;
}
try {
List<Device> deviceList;
Remove the list and use an integer variable to check the size of the list
userStoreManager.deleteUser(username);
if (log.isDebugEnabled()) {
log.debug("User '" + username + "' was successfully removed.");
if (domain != null && !domain.isEmpty()) {
Same condition is checking twice. Handle it in an appropriate way
} else {
String msg = "There are enrolled devices for username: " + username;
log.error(msg);
return Response.serverError().entity(
Change the response to a Bad request
9767f7e90f
into master 1 year agoReviewers
9767f7e90f
.