[perf] reuse connection (#3624)

This commit is contained in:
Vlad Stan
2025-12-06 14:52:06 +01:00
committed by GitHub
parent 71e0b396d2
commit 5d79327906
13 changed files with 321 additions and 188 deletions
+4
View File
@@ -201,6 +201,10 @@ class Account(AccountId):
self.is_admin = settings.is_admin_user(self.id)
self.fiat_providers = settings.get_fiat_providers_for_user(self.id)
@property
def has_password(self) -> bool:
return self.password_hash is not None
def hash_password(self, password: str) -> str:
"""sets and returns the hashed password"""
salt = gensalt()