[pve-devel] [PATCH v2 manager] user: password edit: clarify that password changes for PAM realm only apply to connected node

Fiona Ebner f.ebner at proxmox.com
Mon Apr 7 10:16:57 CEST 2025


Reported in the community forum:
https://forum.proxmox.com/threads/158518/

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---

Changes in v2:
* Drop already applied patches.
* Improve language in the message.
* Use short-form assignment for object property.

 www/manager6/dc/UserView.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index 82bd2ee7..f00015d9 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -68,10 +68,17 @@ Ext.define('PVE.dc.UserView', {
 		return false;
 	    },
 	    handler: function(btn, event, rec) {
+		let hintHtml;
+		if (rec.data['realm-type'] === 'pam') {
+		    hintHtml =
+			gettext("For the PAM realm, this applies only to the connected node.");
+		}
+
 		Ext.create('Proxmox.window.PasswordEdit', {
 		    userid: rec.data.userid,
 		    confirmCurrentPassword: Proxmox.UserName !== 'root at pam',
 		    autoShow: true,
+		    hintHtml,
 		    minLength: 8,
 		    listeners: {
 			destroy: () => reload(),
-- 
2.39.5





More information about the pve-devel mailing list