mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
fix: 修复通知用户过期时间bug
This commit is contained in:
@@ -169,7 +169,7 @@ class PasswordExpirationReminderMsg(UserMessage):
|
||||
class UserExpirationReminderMsg(UserMessage):
|
||||
def get_html_msg(self) -> dict:
|
||||
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')
|
||||
context = {
|
||||
'name': self.user.name,
|
||||
|
Reference in New Issue
Block a user