Use HATEOAS link to change password

This commit is contained in:
Philipp Czora
2018-11-07 17:05:46 +01:00
parent e5dcae6874
commit 2ebd960154
7 changed files with 14 additions and 16 deletions

View File

@@ -136,10 +136,12 @@ const callFetchMe = (link: string): Promise<Me> => {
return response.json();
})
.then(json => {
const { name, displayName, mail, _links } = json;
return {
name: json.name,
displayName: json.displayName,
mail: json.mail
name,
displayName,
mail,
_links
};
});
};