From dec4dc06933908e0aec59533a331b46c3c8a720a Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Thu, 18 Jun 2026 11:22:38 +0100 Subject: [PATCH] MT#65343 Use "resource" for API request 'otpsecret' "apiGet" method adds "/" at the end of the URL when using resource. All API v1 URL requests need to end with a "/" or the backend redirects them automatically. Change-Id: Icfa49a4486da428c01cf1b6cd41c5152ae279a14 (cherry picked from commit 716e0e8f3e0bab36e0b523790212b4f7cc383d21) --- src/store/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/user.js b/src/store/user.js index 1171950d..4608efea 100644 --- a/src/store/user.js +++ b/src/store/user.js @@ -402,7 +402,7 @@ export default { } const res = await apiGet( { - path: 'api/otpsecret', + resource: 'otpsecret', config: { responseType: 'blob', headers @@ -433,7 +433,7 @@ export default { } const res = await apiGet( { - path: 'api/otpsecret', + resource: 'otpsecret', config: { headers } }) commit('storeOTPSecret', { type: 'text', data: res.data })