mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 17:30:30 +00:00
fix: 修复通知用户过期时间bug
This commit is contained in:
@@ -169,7 +169,7 @@ class PasswordExpirationReminderMsg(UserMessage):
|
|||||||
class UserExpirationReminderMsg(UserMessage):
|
class UserExpirationReminderMsg(UserMessage):
|
||||||
def get_html_msg(self) -> dict:
|
def get_html_msg(self) -> dict:
|
||||||
subject = _('Account is about expire')
|
subject = _('Account is about expire')
|
||||||
date_expired_local = timezone.localtime(self.user.date_password_expired)
|
date_expired_local = timezone.localtime(self.user.date_expired)
|
||||||
date_expired = date_expired_local.strftime('%Y-%m-%d %H:%M:%S')
|
date_expired = date_expired_local.strftime('%Y-%m-%d %H:%M:%S')
|
||||||
context = {
|
context = {
|
||||||
'name': self.user.name,
|
'name': self.user.name,
|
||||||
|
Reference in New Issue
Block a user