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 86F9BDD68 for ; Fri, 22 Sep 2023 16:37:35 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 55CA6BC6E for ; Fri, 22 Sep 2023 16:37:05 +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 ; Fri, 22 Sep 2023 16:37:04 +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 C9C8048855 for ; Fri, 22 Sep 2023 16:37:03 +0200 (CEST) From: Philipp Hufnagl To: pve-devel@lists.proxmox.com Date: Fri, 22 Sep 2023 16:36:54 +0200 Message-Id: <20230922143658.1639173-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.003 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 manager/access-control/proxmox-widget-toolkit v1 0/4] 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: Fri, 22 Sep 2023 14:37:35 -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 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(+) Philipp Hufnagl (2): fix #4546: css: Inform user administrator about user accounts expiring soon fix #4546: utils: save expiring date of user account for UI src/Utils.js | 9 ++++++++- src/css/ext6-pmx.css | 4 ++++ src/proxmox-dark/scss/abstracts/_variables.scss | 2 ++ src/proxmox-dark/scss/extjs/_menu.scss | 4 ++++ src/proxmox-dark/scss/proxmox/_general.scss | 5 +++++ 5 files changed, 23 insertions(+), 1 deletion(-) -- 2.39.2