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 83fc231c75 - Show all commits
@@ -232,6 +232,8 @@ class TestTOTP:
def test_verify_totp_no_secret_enabled(self, mock_config, temp_auth_file):
"""Test that TOTP verification passes when 2FA not enabled."""
# Clear any existing secret from previous tests
save_totp_secret("")
# No secret saved, should return True (2FA disabled)
assert verify_totp("any_code")