events updated

This commit is contained in:
2024-11-13 10:38:00 +03:00
parent 952d742999
commit 077d264b28
48 changed files with 277300 additions and 913 deletions

View File

@@ -45,6 +45,7 @@ class AuthModule(PasswordModule):
@classmethod
def check_user_exits(cls, access_key, domain):
from databases import Users
found_user = Users.query.filter(
or_(
Users.email == str(access_key).lower(),
@@ -196,13 +197,7 @@ class AuthModule(PasswordModule):
join_list = [
_ for _ in str(self.password_expires_day).split(",")[0] if _.isdigit()
]
return float(
timedelta(
days=int(
"".join(join_list)
)
).seconds
)
return float(timedelta(days=int("".join(join_list))).seconds)
class UserLoginModule(AuthModule):