From 26335b9e859e57f4de81f999f74e5c646e43205c Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 6 Jun 2024 13:48:23 +0300 Subject: [PATCH] changed invitation email error response --- .../merge-email-confirmation.component.ts | 2 +- dmp-frontend/src/assets/i18n/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/ui/auth/login/merge-email-confirmation/merge-email-confirmation.component.ts b/dmp-frontend/src/app/ui/auth/login/merge-email-confirmation/merge-email-confirmation.component.ts index 6245b3afd..6247d131c 100644 --- a/dmp-frontend/src/app/ui/auth/login/merge-email-confirmation/merge-email-confirmation.component.ts +++ b/dmp-frontend/src/app/ui/auth/login/merge-email-confirmation/merge-email-confirmation.component.ts @@ -64,7 +64,7 @@ export class MergeEmailConfirmation extends BaseComponent implements OnInit { onCallbackError(errorResponse: HttpErrorResponse) { const errorOverrides = new Map(); errorOverrides.set(302, this.language.instant('EMAIL-CONFIRMATION.EMAIL-FOUND')); - errorOverrides.set(-1, this.language.instant('EMAIL-CONFIRMATION.EXPIRED-EMAIL')); + errorOverrides.set(403, this.language.instant('EMAIL-CONFIRMATION.EXPIRED-EMAIL')); this.httpErrorHandlingService.handleBackedRequestError(errorResponse, errorOverrides, SnackBarNotificationLevel.Error) const error: HttpError = this.httpErrorHandlingService.getError(errorResponse); diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index 4d8992899..95c6e559a 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -257,7 +257,7 @@ "POLICY": "Cookies Policy" }, "EMAIL-CONFIRMATION": { - "EXPIRED-EMAIL": "Mail invitation expired", + "EXPIRED-EMAIL": "Your mail invitation has expired, or you are not logged in with the correct account.", "EMAIL-FOUND": "Email is already confirmed" }, "HOME": {