From ee9d92e37e2c1e667a32baacd99e287db7a9e1eb Mon Sep 17 00:00:00 2001 From: Markus Frank Date: Wed, 26 Feb 2025 15:07:35 +0100 Subject: [PATCH] fix: window: AuthEditBase: rename variable 'realm' to 'type' PVE/PMG API returns a variable called 'type' instead of 'realm' Fixes: 3822a03 ("window: AuthEditBase: include more information in thrown errors") Signed-off-by: Markus Frank Signed-off-by: Thomas Lamprecht --- src/window/AuthEditBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window/AuthEditBase.js b/src/window/AuthEditBase.js index 73c1fee..e044235 100644 --- a/src/window/AuthEditBase.js +++ b/src/window/AuthEditBase.js @@ -91,9 +91,9 @@ Ext.define('Proxmox.window.AuthEditBase', { var data = response.result.data || {}; // just to be sure (should not happen) // only check this when the type is not in the api path - if (!me.useTypeInUrl && data.realm !== me.authType) { + if (!me.useTypeInUrl && data.type !== me.authType) { me.close(); - throw `got wrong auth type '${me.authType}' for realm '${data.realm}'`; + throw `got wrong auth type '${me.authType}' for realm '${data.type}'`; } me.setValues(data); },