Merge dev to main: Security improvements and comprehensive test infrastructure #39

Merged
jimmy merged 195 commits from dev into main 2026-04-08 01:42:27 +08:00
Showing only changes of commit 6285f03c36 - Show all commits
@@ -204,6 +204,9 @@ class TestTOTP:
def test_load_totp_secret_from_env(self, mock_config, temp_auth_file, monkeypatch):
"""Test loading TOTP secret from environment variable."""
# Clear any existing secret in file first
save_totp_secret("")
monkeypatch.setenv("TOTP_SECRET", "ENV_SECRET_KEY")
import importlib
import config