[pbs-devel] [PATCH proxmox-backup] ui: user edit: don't send realm property

Stefan Sterz s.sterz at proxmox.com
Wed Mar 6 12:45:56 CET 2024


the api does not accept a realm property here, it is only needed to
construct a proper user id of the form `{username}@{realm}`. so
remove it before sending it to the api and getting an error in return.

Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
 www/window/UserEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/window/UserEdit.js b/www/window/UserEdit.js
index 9a48b32f..165597bb 100644
--- a/www/window/UserEdit.js
+++ b/www/window/UserEdit.js
@@ -199,6 +199,10 @@ Ext.define('PBS.window.UserEdit', {
 	    delete values.password;
 	}
 
+	if (values.realm) {
+	    delete values.realm;
+	}
+
 	return values;
     },
 
-- 
2.39.2





More information about the pbs-devel mailing list