From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1B8B39906D for ; Tue, 10 Oct 2023 12:40:50 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 00FE631743 for ; Tue, 10 Oct 2023 12:40:49 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 10 Oct 2023 12:40:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 9EE05449A5 for ; Tue, 10 Oct 2023 12:40:48 +0200 (CEST) From: Philipp Hufnagl To: pve-devel@lists.proxmox.com Date: Tue, 10 Oct 2023 12:40:29 +0200 Message-Id: <20231010104034.932760-1-p.hufnagl@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.084 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [accesscontrol.pm] Subject: [pve-devel] [PATCH proxmox-widget-toolkit/manager/access-control v2 0/5] fix #4546: Show warning hint/badge if user account is expiring in next few days X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2023 10:40:50 -0000 Currently, when an user account expires, it catches the users by surprise. It would be helpful to notify the the user as well as the administrator. This patch highlights such accounts in the user account pannel and also shows for regular user an exclamation mark in the user info pannel. It also adds in this case a new entry briefly saing that the account expires. When this entry is clicked it states this in more detail including the experation date. Sending this for PVE only now to get feedback before implementing this for PMG and PBS I hope I managed to implement all the feedback. If I have forgotten something please tell _menu Changes since v1: * Rename variables according to feedback * Reuse existing css colors according to feedback * Rework API parameters according to feedback * Minor code changes Philipp Hufnagl (3): fix #4546: css: create a new css class for warning texts fix #4546: utils: Highlight accounts in user management that exprie soon fix #4546: utils: Expand authentication data with account expiry date src/Utils.js | 9 ++++++++- .../scss/abstracts/_variables.scss | 20 ++++++++++--------- src/proxmox-dark/scss/extjs/_menu.scss | 4 ++++ src/proxmox-dark/scss/other/_charts.scss | 4 ++-- 4 files changed, 25 insertions(+), 12 deletions(-) Philipp Hufnagl (1): fix #4546: ui: notify user if there usser account expires soon www/manager6/Workspace.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) Philipp Hufnagl (1): fix #4546: api: Return user expiration date on access/ticket API call src/PVE/API2/AccessControl.pm | 8 ++++++++ src/PVE/AccessControl.pm | 8 ++++++++ 2 files changed, 16 insertions(+) -- 2.39.2