Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Sep 6, 2024
1 parent c2383d5 commit 37a1e9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/middlewared/middlewared/utils/user_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@


@dataclass(frozen=True)
class UserAPIKey:
class UserApiKey:
expiry: int
userhash: str


@dataclass(frozen=True)
class PamTdbEntry:
keys: list[UserAPIKey]
keys: list[UserApiKey]
username: str


Expand All @@ -38,7 +38,7 @@ def _setup_pam_tdb_dir() -> None:
os.chmod(PAM_TDB_DIR, PAM_TDB_DIR_MODE)


def _pack_user_auth_key(api_key: UserAPIKey) -> bytes:
def _pack_user_auth_key(api_key: UserApiKey) -> bytes:
"""
Convert UserAuthToken to bytes for TDB insertion.
This is packed struct with expiry converted into signed 64 bit
Expand Down

0 comments on commit 37a1e9a

Please sign in to comment.