Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Jan 30, 2025
1 parent 50c3554 commit 3646526
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/middlewared/middlewared/api/v25_04_0/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ class UserTwofactorConfigEntry(BaseModel):
otp_digits: int


class UserTwofactorConfigResult(BaseModel):
result = UserTwofactorConfigEntry
@single_argument_result
class UserTwofactorConfigResult(UserTwofactorConfigEntry):
pass


class UserVerifyTwofactorTokenArgs(BaseModel):
Expand Down Expand Up @@ -291,5 +292,6 @@ class UserRenew2faSecretArgs(BaseModel):
twofactor_options: TwofactorOptions


@single_argument_result
class UserRenew2faSecretResult(UserEntry):
twofactor_config = UserTwofactorConfigEntry
twofactor_config: UserTwofactorConfigEntry
1 change: 0 additions & 1 deletion tests/unit/test_role_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
READONLY_ADMIN_METHODS = ALL_METHODS - WRITE_METHODS
FULL_ADMIN_STIG = ALL_METHODS - FAKE_METHODS_NOSTIG
EXPECTED_FA_RESOURCES = frozenset({
'user.verify_twofactor_token',
'failover.reboot.other_node',
'truenas.accept_eula',
'filesystem.put',
Expand Down

0 comments on commit 3646526

Please sign in to comment.