diff --git a/src/impl/Event/service.py b/src/impl/Event/service.py index 97be4d6..cf48d3d 100644 --- a/src/impl/Event/service.py +++ b/src/impl/Event/service.py @@ -450,6 +450,7 @@ def get_pending_hackers_gruped(self, event_id: int, data: BaseToken): "members": [{ "id": hacker.id, "name": hacker.name, + "mail": hacker.mail, "birthdate": hacker.birthdate, "address": hacker.address, "food_restrictions": hacker.food_restrictions, @@ -462,6 +463,7 @@ def get_pending_hackers_gruped(self, event_id: int, data: BaseToken): nogroup_data = [{ "id": hacker.id, "name": hacker.name, + "mail": hacker.mail, "birthdate": hacker.birthdate, "address": hacker.address, "food_restrictions": hacker.food_restrictions, diff --git a/src/utils/Token.py b/src/utils/Token.py index 6035b04..45c0c6c 100644 --- a/src/utils/Token.py +++ b/src/utils/Token.py @@ -203,6 +203,7 @@ class AccesToken(BaseToken): def __init__(self, user: User): super().__init__(user) self.type = TokenType.ACCESS.value + self.expt = (datetime.now(UTC) + timedelta(days=30)).isoformat() if user is None: return self.is_verified = user.is_verified