From a15c2e1c66925bed5b64111845f5c7ddec87b700 Mon Sep 17 00:00:00 2001 From: Alistair Ross <87852242+AlistairMRoss@users.noreply.github.com> Date: Fri, 20 Oct 2023 10:30:21 +0200 Subject: [PATCH] was encrypting email --- .../fragile/infosafe/primary/service/AccessRequestService.java | 2 +- .../fragile/infosafe/primary/service/AssetRequestService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java index bc2b6a67..64cbc214 100644 --- a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java +++ b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AccessRequestService.java @@ -77,7 +77,7 @@ public ResponseEntity reviewAccessRequest(ReviewRequest reviewRequest) { dataScope.getUsers().add(user); dataScopeRepository.save(dataScope); deleteService.deleteAccessRequestAndSaveToSecondary(reviewRequest.getRequest_id()); - emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), dataScope.getDs_name(), "Approved"); + emailUser(reviewRequest.getUser_email(), dataScope.getDs_name(), "Approved"); notificationsService.makeNotification("Added to Datascope " + dataScope.getDs_name(), user); return ResponseEntity.ok("given to user"); } else { diff --git a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java index f228c7d5..ae0cda05 100644 --- a/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java +++ b/backend/infosafe_backend/src/main/java/com/fragile/infosafe/primary/service/AssetRequestService.java @@ -88,7 +88,7 @@ public ResponseEntity reviewAssetRequest(ReviewRequest reviewRequest) { asset.setAvailability("No"); asset.setCurrent_assignee(user); assetRepository.save(asset); - emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), asset.getAsset_name(), "Approved"); + emailUser(reviewRequest.getUser_email(), asset.getAsset_name(), "Approved"); notificationsService.makeNotification("Received Asset " + asset.getAsset_name(), user); deleteService.deleteAssetRequestAndSaveToSecondary(reviewRequest.getRequest_id()); return ResponseEntity.ok("given to user");