mirror of https://github.com/jumpserver/jumpserver
fix: long_time_no_login account, not listed as risk account
parent
5571fb6f42
commit
8668955d4a
|
@ -116,9 +116,10 @@ class AnalyseAccountRisk:
|
||||||
if not date:
|
if not date:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pre_date = ori_account and getattr(ori_account, field)
|
# 服务器收集的时间和数据库时间一致,不进行比较,无法检测风险 不太对,先注释
|
||||||
if pre_date == date:
|
# pre_date = ori_account and getattr(ori_account, field)
|
||||||
continue
|
# if pre_date == date:
|
||||||
|
# continue
|
||||||
|
|
||||||
if date and date < timezone.now() - delta:
|
if date and date < timezone.now() - delta:
|
||||||
risks.append(
|
risks.append(
|
||||||
|
|
Loading…
Reference in New Issue