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
This commit is contained in:
parent
bdbdf2d229
commit
8e8968b6a2
|
@ -245,7 +245,7 @@ export class CommunityEditFormComponent implements OnInit{
|
|||
this.email.subject = "[OpenAIRE-Connect] " + communityName + ": Managers list notification";
|
||||
this.email.body = "<p>There are updates in the managers list for " + communityName + " community.<br>"
|
||||
+ "The list of managers is: " + newCommunityManagers + "</p><br><br>" +
|
||||
"OpenAIRE team<br>"+ "<a href='https://www.openaire.eu'>www.openaire.eu</a>";
|
||||
"OpenAIRE team<br>" + "<a href='https://www.openaire.eu'>www.openaire.eu</a>";
|
||||
this.email.recipients = newCommunityManagers;
|
||||
|
||||
console.log(this.email);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue