From 8e8968b6a2e3ec6be7ff445841265fe9aeb74c07 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Fri, 23 Nov 2018 14:37:15 +0000 Subject: [PATCH] Add auth option in header for post request git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@53940 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../community-edit-form/community-edit-form.component.ts | 2 +- .../usernotifications/manage-user-notifications.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.ts b/src/app/pages/community/community-edit-form/community-edit-form.component.ts index 98d8700..5c56e44 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.ts +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -245,7 +245,7 @@ export class CommunityEditFormComponent implements OnInit{ this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Managers list notification"; this.email.body = "

There are updates in the managers list for " + communityName + " community.
" + "The list of managers is: " + newCommunityManagers + "



" + - "OpenAIRE team
"+ "www.openaire.eu"; + "OpenAIRE team
" + "www.openaire.eu"; this.email.recipients = newCommunityManagers; console.log(this.email); diff --git a/src/app/pages/usernotifications/manage-user-notifications.service.ts b/src/app/pages/usernotifications/manage-user-notifications.service.ts index a781efb..53832eb 100644 --- a/src/app/pages/usernotifications/manage-user-notifications.service.ts +++ b/src/app/pages/usernotifications/manage-user-notifications.service.ts @@ -4,6 +4,7 @@ import {Http, Response, Headers, RequestOptions} from '@angular/http'; import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties'; import {UserNotificationsRights} from './userNotificationsRights'; +import {CustomOptions} from '../../openaireLibrary/services/servicesUtils/customOptions.class'; @Injectable() export class ManageUserNotificationsService { @@ -23,7 +24,7 @@ export class ManageUserNotificationsService { console.log(body); - return this.http.post(url, body, options) + return this.http.post(url, body, CustomOptions.getAuthOptionsWithBody()) .do(request => console.log("Insert Response:"+request.status)); }