Skip to content

Commit

Permalink
decrypt user for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairMRoss committed Oct 20, 2023
1 parent ba34388 commit 5b23285
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public List<AccessRequest> getAllAccessRequests() {
decryptedCurrentAssignee.setFirst_name(encryptionService.decryptString(currentAssignee.getFirst_name()));
decryptedCurrentAssignee.setLast_name(encryptionService.decryptString(currentAssignee.getLast_name()));
decryptedCurrentAssignee.setRole(currentAssignee.getRole());
accessRequest.setUser_id(currentAssignee);
accessRequest.setUser_id(decryptedCurrentAssignee);
}
return ar;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public List<AssetRequests> getAllAssetRequests() {
decryptedCurrentAssignee.setFirst_name(encryptionService.decryptString(currentAssignee.getFirst_name()));
decryptedCurrentAssignee.setLast_name(encryptionService.decryptString(currentAssignee.getLast_name()));
decryptedCurrentAssignee.setRole(currentAssignee.getRole());
assetRequests.setUser(currentAssignee);
assetRequests.setUser(decryptedCurrentAssignee);
}
return ar;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public List<SupportRequest> getAllSupportRequests() {
decryptedCurrentAssignee.setFirst_name(encryptionService.decryptString(currentAssignee.getFirst_name()));
decryptedCurrentAssignee.setLast_name(encryptionService.decryptString(currentAssignee.getLast_name()));
decryptedCurrentAssignee.setRole(currentAssignee.getRole());
supportRequest.setUser_id(currentAssignee);
supportRequest.setUser_id(decryptedCurrentAssignee);
}
return sr;
}
Expand Down Expand Up @@ -118,7 +118,7 @@ public List<SupportRequest> getUserSupportRequests(int user_id) {
decryptedCurrentAssignee.setFirst_name(encryptionService.decryptString(currentAssignee.getFirst_name()));
decryptedCurrentAssignee.setLast_name(encryptionService.decryptString(currentAssignee.getLast_name()));
decryptedCurrentAssignee.setRole(currentAssignee.getRole());
supportRequest.setUser_id(currentAssignee);
supportRequest.setUser_id(decryptedCurrentAssignee);
}
return sr;
}
Expand Down

0 comments on commit 5b23285

Please sign in to comment.