summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.py b/app/models/user.py
index 442173c..11f5107 100644
--- a/app/models/user.py
+++ b/app/models/user.py
@@ -65,3 +65,7 @@ class User(Base):
):
result = await session.execute(select(cls).where(cls.id == user_id))
return result.scalars().first()
+
+ @property
+ def has_password(self) -> bool:
+ return bool(self.password)