changed invitation email error response
This commit is contained in:
parent
80b3b9169c
commit
26335b9e85
|
@ -64,7 +64,7 @@ export class MergeEmailConfirmation extends BaseComponent implements OnInit {
|
||||||
onCallbackError(errorResponse: HttpErrorResponse) {
|
onCallbackError(errorResponse: HttpErrorResponse) {
|
||||||
const errorOverrides = new Map<number, string>();
|
const errorOverrides = new Map<number, string>();
|
||||||
errorOverrides.set(302, this.language.instant('EMAIL-CONFIRMATION.EMAIL-FOUND'));
|
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)
|
this.httpErrorHandlingService.handleBackedRequestError(errorResponse, errorOverrides, SnackBarNotificationLevel.Error)
|
||||||
|
|
||||||
const error: HttpError = this.httpErrorHandlingService.getError(errorResponse);
|
const error: HttpError = this.httpErrorHandlingService.getError(errorResponse);
|
||||||
|
|
|
@ -257,7 +257,7 @@
|
||||||
"POLICY": "Cookies Policy"
|
"POLICY": "Cookies Policy"
|
||||||
},
|
},
|
||||||
"EMAIL-CONFIRMATION": {
|
"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"
|
"EMAIL-FOUND": "Email is already confirmed"
|
||||||
},
|
},
|
||||||
"HOME": {
|
"HOME": {
|
||||||
|
|
Loading…
Reference in New Issue