mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
TOTP implementation
This commit is contained in:
@@ -59,6 +59,8 @@ async def _get_configured_manager(
|
||||
|
||||
external_type=("htpasswd" if external_path else ""),
|
||||
external_kwargs=(_make_service_kwargs(external_path) if external_path else {}),
|
||||
|
||||
totp_secret_path="",
|
||||
)
|
||||
|
||||
try:
|
||||
@@ -149,6 +151,8 @@ async def test_ok__disabled() -> None:
|
||||
|
||||
external_type="",
|
||||
external_kwargs={},
|
||||
|
||||
totp_secret_path="",
|
||||
)
|
||||
|
||||
assert not manager.is_auth_enabled()
|
||||
|
||||
Reference in New Issue
Block a user