Skip to content
Snippets Groups Projects
Commit 073e7fb1 authored by Martin Mareš's avatar Martin Mareš
Browse files

Neaktivitu účtů posuzujeme podle last_loginu místo existence hesla

Jinak UI ukazuje systémový účet jako neaktivní.
parent 693b646c
Branches
No related tags found
No related merge requests found
...@@ -370,7 +370,7 @@ class User(Base): ...@@ -370,7 +370,7 @@ class User(Base):
return (locale.strxfrm(self.last_name), locale.strxfrm(self.first_name)) return (locale.strxfrm(self.last_name), locale.strxfrm(self.first_name))
def is_inactive(self) -> bool: def is_inactive(self) -> bool:
return self.password_hash is None return self.last_login is None
def get_system_user() -> User: def get_system_user() -> User:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment