From 0bce620e3478a710b34573e28ce7f4657fe84fb1 Mon Sep 17 00:00:00 2001 From: "cyril.biencourt" Date: Wed, 23 Oct 2019 14:20:53 +0200 Subject: [PATCH] fix(auth): shouldDisplayMFAEnrollment --- src/api/auth/auth.v6.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/auth/auth.v6.service.js b/src/api/auth/auth.v6.service.js index 33ac4abf..8226f586 100644 --- a/src/api/auth/auth.v6.service.js +++ b/src/api/auth/auth.v6.service.js @@ -15,11 +15,11 @@ angular.module('ovh-api-services').service('OvhApiAuthV6', ($resource, $http) => url: '/auth/shouldDisplayMFAEnrollment', method: 'GET', isArray: false, - transformResponse: (response) => { + transformResponse: $http.defaults.transformResponse.concat((response) => { return { value: response === "true" }; - }, + }), }, time: { url: '/auth/time',