From: Stefan Sterz <s.sterz@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] ui: user edit: don't send realm property
Date: Wed, 6 Mar 2024 12:45:56 +0100 [thread overview]
Message-ID: <20240306114556.145469-1-s.sterz@proxmox.com> (raw)
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@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
next reply other threads:[~2024-03-06 11:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-06 11:45 Stefan Sterz [this message]
2024-03-07 9:42 ` [pbs-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240306114556.145469-1-s.sterz@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox